compile error, undefined symbol
| Mon, 2008-01-28 09:00 | |
|
Hi, I compile my program, and there're many errors appeared. My program use the CFsPlugin class, and when I get to the link step, many errors like I search the "efile.lib" file and found the symbol "(??1CFsPlugin@@UAE@XZ)" and I also include the efile.lib How can I sort this problem. Thank you. Regards |
|






Forum posts: 293
Hi,
You include header file and library file for CFsPlugin class in proper place
Thanks & Regards
Ram
Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++
Forum posts: 21
Thank you,
But actually, I do include the f32plugin.h & efile.lib files, the errors still here.
And what's your "in proper place" means?
How odd is it.
Regards
zhou
Forum posts: 21
Hi,
I include the header file "cfsplugin.h" in my header file, them the errors exist.
But I include the header file in my source file, the errors gone.
I never met this odd thing before.
zhou
Forum posts: 141
Hi,
Because you are using the CFsPlugin class in your source file.
regards,
eswar
Forum posts: 21
Thank you very much.
Just forget it.
And there's another problem occurs.
I try another test program, and it just have a single .cpp file, I include the hearder file "f32file.h" in this .cpp file.
And add efsrv.lib euser.lib efile.lib to my .mmp file.
I try to call the RFs::Connect(), RFs::AddPlugin(), and RFs::MountPlugin(), to test my plugin.
The same errors appear again.
Like: Undefined symbol: 'int RFs::AddPlugin(class TDesC16 const &) const (?AddPlugin@RFs@@QBEHABVTDesC16@@@Z)'[]
Like: Undefined symbol: 'int RFs::Connect(int) (?Connect@RFs@@QAEHH@Z)'[]
Like: Undefined symbol: 'int RFs::MountPlugin(class TDesC16 const &, int, int) const (?MountPlugin@RFs@@QBEHABVTDesC16@@HH@Z)'[]
Is it a compile error or a link error?
Am I use in wrong way? But I cut it from an example provide by the Symbian.
What can I do to sort this problem now?
Regards
zhou
Forum posts: 49
All errors which look like this
int RFs::Connect(int) (?Connect@RFs@@QAEHH@Z)are link errors
Forum posts: 293
Hi,
you add header file and library file of RF. Undefined means you have not defined`so need to define.
Thanks & Regards
Ram
Symbian OS 9.1,S60 3rd edition MR,and Carbide.C++
Forum posts: 463
Chances are that although you are adding the libs, they still not making any difference as the ide yóu are using maybe one where it might be needed to re-import your project.
Forum posts: 21
Hi,
Thank you all.
I use the BAK( binary access kit ), which provided by Symbian, as my develop environment.
Actually I compile an example include in the BAK, it just make so many errors.
But I do the same thing in sdk environment is ok.
I can't sort this problem by now.
Regards
zhou
Forum posts: 21
Hi,
I didn't note that, the BAK doesn't support windows xp well, and I chang to windows 2000,
all appear normal.
Regards
zhou
Forum posts: 982
There shouldn't be differences between xp and 2000.
Can you spot exactly what example do you use? And from where have you downloaded the BAK?
pirosl
Forum posts: 21
Hi,
It 's a wizard-make project, and I just call RFc::AddPlugin(), RFc::MountPlugin(), RFc::DisMountPlugin() in it.
I get this BAK because we're platum partner of Symbian.
Regards
zhou
Forum posts: 982
Though it's very hard for me to believe that your exactly the same project compiles on win200 dut not on xp, with the only changes you mentioned.
Can you install only the BAK on your XP machine and see it is compiling?
pirosl
Forum posts: 21
Hi,
Absolutely, I will send you a private message when I've done it.
Well, as I try to re-import my project on my xp machine can solve some problem, but some is not so.
And I try change to windows 2000, I can sort this problem, if you ask me if this is a platform related problem, I 'll say "only Symbian know". It just a blind shot.
Regards
zhou