Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2006

    Unhappy Problem Carbide.c++ / RFile & RFs

    Hi everybody!

    I try to develop an application with Carbide.c++ which must access files. So I simply used the RFile / RFs method but after building my project, there are some problems I can't solve. Here's a sample of the code (it's very simple) :

    TInt err=file.Open (fsSession,KWorksDataFile,EFileStreamText|EFileWrite|EFileShareAny);
    if (err==KErrNotFound)
    I don't think there's an error in my code but Carbide displays some errors :

    Undefined Symbol: 'int RFs::Connect(int) (?Connect@RFs@@QAEHH@Z)' ...
    Undefined Symbol: 'int RFile::Open(class RFs &,class TDesC16 const &, unsigned int) (?Open@RFile...
    I read a lot of things about this on Internet like include the efsrv.lib library or include f32file.h in the project. I tried everything but the errors are always there... I begin with Carbide and perhaps that I did something wrong.

    Hope leaves. Please help

    PS : And sorry for my approximative english. I hope you'll understand what I say.
    Last edited by nico; 2006-10-20 at 14:06.

  2. #2
    Registered User
    Join Date
    Feb 2005
    Bologna - Italy

    Smile Re: Problem Carbide.c++ / RFile & RFs

    You have to link library efsrv.lib.
    I'm not a wizard, you have to chek in sdk help
    classes RFs and RFile; you will find something like:
    Location: f32file.h
    Link against: efsrv.lib

    Hope this can help.

  3. #3
    Registered User
    Join Date
    Oct 2006

    Re: Problem Carbide.c++ / RFile & RFs

    Hi slibrenti!

    You're right. After searching in the carbide help, I saw I forgot a line. I didn't know that I had to include such a line !!??

    #pragma comment (lib,"efsrv.lib")

    Thank you. You're my hero!

  4. #4
    Registered User
    Join Date
    Oct 2008

    Re: Problem Carbide.c++ / RFile & RFs

    Thanks it works, i just look from the libraries options in MMP file add the library and no more error

Similar Threads

  1. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  2. About 6230 Bt Problem
    By eerkek in forum Bluetooth Technology
    Replies: 17
    Last Post: 2005-02-08, 12:33
  3. CodeWarrior EPOCROOT problem
    By splinecl in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-10-01, 09:47
  4. 7210 Silent Problem
    By MarkMckim in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-18, 12:36
  5. PJava runtime problem within Nokia 9210, Hrlp~!
    By Nokia_Archive in forum PersonalJava
    Replies: 1
    Last Post: 2002-05-28, 13:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts