error LNK2019: CBDERR -- unresolved external symbol "public: int __thiscall RFs::Connect(int)"

Login to reply to this topic.
Fri, 2008-02-15 13:45
Joined: 2006-12-19
Forum posts: 67

Hi ,

these are the error I m getting while adding FileHandler.Cpp to my project.
I tried to udate the .MMP file by riht clicking it and slecting update mmp file.
The .cpp file is added but the library file is not (Beacuse , in mmp file it is being shown vth //[-] sign)
How will I be able to add libray file to it.
I m using vs 2005 and Carbide.vs3.0

============These are the errors shown=========================
Performing Pre-Build Event...
* Current build configuration: WINSCW UDEB
Compiling...
epocroot = \Symbian\8.1a\S60_2nd_FP3\
* mwccsym2.exe -g -O0 -inline off -sym codeview_new -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle msvs -enum int -str pool -exc ms -nostdinc -d _DEBUG -d _UNICODE -d "__SYMBIAN32__" -d "__SERIES60_23__" -d "__SERIES60_2X__" -d "__DLL__" -d "__WINSCW__" -d "__WINS__" -d "__CW32__" -d "_DEBUG" -d "_UNICODE" -d "_WINDLL" -cwd source -i- -i "group" -i "inc" -i "C:\Symbian\8.1a\S60_2nd_FP3\\epoc32\include" -i "C:\Symbian\8.1a\S60_2nd_FP3\\epoc32\include\ecom" -i "C:\Symbian\8.1a\S60_2nd_FP3\\epoc32\include\http" -i "c:\MySymbProjects\HTTPExample\inc" -c .\src\FileHandler.cpp -o "Deb_S60_23_WINSCW\FileHandler.obj"
Linking...
HTTPExampleDocument.obj : warning LNK4078: multiple '.data' sections found with different attributes (40301040)
Creating library C:\Symbian\8.1a\S60_2nd_FP3\\Epoc32\release\winscw\udeb\z\\system\apps\HTTPExample\HTTPExample.lib and object C:\Symbian\8.1a\S60_2nd_FP3\\Epoc32\release\winscw\udeb\z\\system\apps\HTTPExample\HTTPExample.exp
FileHandler.obj : error LNK2019: CBDERR -- unresolved external symbol "public: int __thiscall RFs::Connect(int)" (?Connect@RFs@@QAEHH@Z) referenced in function "public: __thiscall RFileHandler::RFileHandler(void)" (??0RFileHandler@@QAE@XZ)
FileHandler.obj : error LNK2019: CBDERR -- unresolved external symbol "public: int __thiscall RFile::Create(class RFs &,class TDesC16 const &,unsigned int)" (?Create@RFile@@QAEHAAVRFs@@ABVTDesC16@@I@Z) referenced in function "public: int __thiscall RFileHandler::CreateFile(class TDesC16 const &,unsigned int)" (?CreateFile@RFileHandler@@QAEHABVTDesC16@@I@Z)
FileHandler.obj : error LNK2019: CBDERR -- unresolved external symbol "public: int __thiscall RFile::Open(class RFs &,class TDesC16 const &,unsigned int)" (?Open@RFile@@QAEHAAVRFs@@ABVTDesC16@@I@Z) referenced in function "public: void __thiscall RFileHandler::OpenFile(class TDesC16 const &,unsigned int)" (?OpenFile@RFileHandler@@QAEXABVTDesC16@@I@Z)
FileHandler.obj : error LNK2019: CBDERR -- unresolved external symbol "public: void __thiscall RFsBase::Close(void)" (?Close@RFsBase@@QAEXXZ) referenced in function "public: void __thiscall RFileHandler::CloseFile(void)" (?CloseFile@RFileHandler@@QAEXXZ)
FileHandler.obj : error LNK2019: CBDERR -- unresolved external symbol "public: int __thiscall RFile::Write(class TDesC8 const &)" (?Write@RFile@@QAEHABVTDesC8@@@Z) referenced in function "public: void __thiscall RFileHandler::WriteToFile(class TDesC8 const &)" (?WriteToFile@RFileHandler@@QAEXABVTDesC8@@@Z)
FileHandler.obj : error LNK2019: CBDERR -- unresolved external symbol "public: int __thiscall RFile::Flush(void)" (?Flush@RFile@@QAEHXZ) referenced in function "public: void __thiscall RFileHandler::WriteToFile(class TDesC8 const &)" (?WriteToFile@RFileHandler@@QAEXABVTDesC8@@@Z)
FileHandler.obj : error LNK2019: CBDERR -- unresolved external symbol "public: int __thiscall RFile::Read(int,class TDes8 &,int)const " (?Read@RFile@@QBEHHAAVTDes8@@H@Z) referenced in function "public: class TPtr8 __thiscall RFileHandler::ReadFromFile(void)" (?ReadFromFile@RFileHandler@@QAE?AVTPtr8@@XZ)
FileHandler.obj : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators
C:\Symbian\8.1a\S60_2nd_FP3\\Epoc32\release\winscw\udeb\z\\system\apps\HTTPExample\HTTPExample.app : error CBDERR: Deleting the corrupted output.
Results Build log was saved at "file://c:\MySymbProjects\HTTPExample\Deb_S60_23_WINSCW\BuildLog.htm"
HTTPExample - 8 error(s), 2 warning(s)


Fri, 2008-02-15 14:24
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 1886
Re: error LNK2019: CBDERR -- unresolved external symbol "public:

Edit the MMP file manually then.... You miss the efsrv.lib library.


Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Sat, 2008-02-16 07:42
Joined: 2006-12-19
Forum posts: 67
Re: error LNK2019:

I have edited the mmp file manually and selected upadte mmp file.
Still it s not being added.(as it is with [-] sign)

I am geeting the link errors.

Is there any other way to add library to symbian proj in vs studio 2005 ?

Reagards,
Netra

Sat, 2008-02-16 07:45
Joined: 2006-12-19
Forum posts: 67
error LNK2019: CBDERR -..

In code warrior we simply add .lib and reimport the mmp file.It was that simple.
How to do that here?

Thanks

Sat, 2008-02-16 10:48
Joined: 2006-12-19
Forum posts: 67
Re: error LNK2019: CBDERR -

Ok, the problem is solved now.
being a migrant from code warrior to vs i was doing a d old mistake of changing mmp file by modifying it first and then
updating it.

infact we dont have to do that and add it using project -> properties ->linker-> input way as in vc++.

  • Login to reply to this topic.