Getting a Undefined Symbol: 'CFbsBitmap::CFbsBitmap(void) ..

Login to reply to this topic.
Wed, 2003-11-26 19:18
Joined: 2003-11-26
Forum posts: 11
I'm new to symbian, but i've been programming some years.

I get this problem, wich is probably rather simple, but I've been looking at i for so long, that I might have gone blind Smiley

I get a linker error saying
Undefined Symbol: 'CFbsBitmap::CFbsBitmap(void) (??0CFbsBitmap@@..)'

And i really can't see why.
The part the error is originating from is here:
void CQStartView::ConstructL()
{
   CFbsBitmap* iBitmap;
   _LIT(KTxtMBMname,"C:\\system\\apps\\BasicApp\\grbmap.mbm");
    CreateWindowL();
    Window().SetShadowDisabled(ETrue);
   TRect rect = iAppUi->ClientRect();
   SetRect(rect);
    ActivateL();
    MakeVisible(EFalse);
    // set up name for bitmap sharing
TBool shareIfLoaded(ETrue);
   iBitmap = new (ELeave) CFbsBitmap();
   
}

when i attempt to create the instance iBitmap of CFbsBitmap i get the error. I just can't see why.  Huh

Hope somone can spot my mistake.

Wed, 2003-11-26 20:20
Anonymous (not verified)
Forum posts: 2043
Getting a Undefined Symbol: 'CFbsBitmap::CFbsBitmap(void) ..
Link against: fbscli.lib
Wed, 2003-11-26 22:50
Anonymous (not verified)
Forum posts: 2043
Getting a Undefined Symbol: 'CFbsBitmap::CFbsBitmap(void) ..
Quote from: Anonymous
Link against: fbscli.lib

Thanks a bundle! Smiley - that was it.
Now it works. Though CodeWarrior had a bit special of handling libraries. Grin
Sun, 2007-04-01 06:47
Joined: 2007-04-01
Forum posts: 3
Re: Getting a Undefined Symbol: 'CFbsBitmap::CFbsBitmap(void) ..
Hi, I am new to symbian programming and understand that this thread had been posted a long time ago, but I am having the same problem even after linking the fbscli.lib in the mmp file. I am using Carbide C++ and the S60 3rd edition FP1 sdk and every time when I try to build the project in Carbide it gives me the same undefined symbol error. When I look at the output in the console, I notice that every library specified in the mmp file is linked except for fbscli.lib! Any idea what is causing this? Any help will be much appreciated! Smiley
Sun, 2007-04-01 15:08
Joined: 2007-04-01
Forum posts: 3
Re: Getting a Undefined Symbol: 'CFbsBitmap::CFbsBitmap(void) ..
Ok, do it:

1) add in your .mmp this in the 1st line of librarys:

LIBRARY           fbscli.lib

2)Go to Projects->Properties. Find the C/C++ Build section, then search for WINSCW Linker and then Libraries. You ill find a list of the linked libraries, just click on the button to add more libraries. And then press apply/ok;

Remember: the pos of the fbscli must be the same as in the mmp, if its the first in the .mmp then it should be the first in the Libraries , for that you have a UP/Down button.

Hope its helps.
Thu, 2007-04-05 04:54
Joined: 2007-04-01
Forum posts: 3
Re: Getting a Undefined Symbol: 'CFbsBitmap::CFbsBitmap(void) ..
Thanks! That did it! Sorry for the late reply, was kinda tied up with other projects Smiley
  • Login to reply to this topic.