compile error, undefined symbol

Login to reply to this topic.
Mon, 2008-01-28 09:00
Joined: 2008-01-08
Forum posts: 21

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
"Undefined symbol: 'CFsPlugin::~CFsPlugin(void) (??1CFsPlugin@@UAE@XZ)'[]" appear.

I search the "efile.lib" file and found the symbol "(??1CFsPlugin@@UAE@XZ)" and I also include the efile.lib
when I compile.

How can I sort this problem.

Thank you.

Regards
zhou


Mon, 2008-01-28 09:47
Joined: 2007-08-29
Forum posts: 293
Re: compile error, undefined symbol

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++

Tue, 2008-01-29 03:36
Joined: 2008-01-08
Forum posts: 21
Re: compile error, undefined symbol

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

Tue, 2008-01-29 03:43
Joined: 2008-01-08
Forum posts: 21
Re: compile error, undefined symbol

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

Tue, 2008-01-29 06:52
Joined: 2005-09-16
Forum posts: 141
Re: compile error, undefined symbol

Hi,

Because you are using the CFsPlugin class in your source file.

regards,
eswar

Tue, 2008-01-29 07:56
Joined: 2008-01-08
Forum posts: 21
Re: compile error, undefined symbol

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

Tue, 2008-01-29 09:01
Joined: 2007-12-19
Forum posts: 49
Re: compile error, undefined symbol

All errors which look like this

int RFs::Connect(int) (?Connect@RFs@@QAEHH@Z)

are link errors

Tue, 2008-01-29 09:01
Joined: 2007-08-29
Forum posts: 293
Re: compile error, undefined symbol

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++

Tue, 2008-01-29 14:35
Forum Nokia Champion
Joined: 2006-10-12
Forum posts: 463
Re: compile error, undefined symbol

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.

Fri, 2008-02-01 02:37
Joined: 2008-01-08
Forum posts: 21
Re: compile error, undefined symbol

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

Fri, 2008-02-01 07:27
Joined: 2008-01-08
Forum posts: 21
Re: compile error, undefined symbol

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

Fri, 2008-02-01 16:01
Joined: 2004-05-24
Forum posts: 982
Re: compile error, undefined symbol

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

Sat, 2008-02-02 07:42
Joined: 2008-01-08
Forum posts: 21
Re: compile error, undefined symbol

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

Sat, 2008-02-02 21:37
Joined: 2004-05-24
Forum posts: 982
Re: compile error, undefined symbol

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

Sun, 2008-02-03 05:24
Joined: 2008-01-08
Forum posts: 21
Re: compile error, undefined symbol

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

  • Login to reply to this topic.