Carbide + S60 2nd + compiler error

Login to reply to this topic.
Fri, 2006-08-04 19:44
Joined: 2006-05-30
Forum posts: 7
Hi,

I've created a Hello World application (from carbide wizard) S60 2.x View Base GUI Application and I got this compiler error:

Code:
Undefined symbol: 'class HBufC16 * StringLoader::LoadLC(int, class CCoeEnv *) (?LoadLC@StringLoader@@SAPAVHBufC16@@HPAVCCoeEnv@@@Z)' referenced from 'void CSimpleDlgContainer::MudaTexto(int) (?MudaTexto@CSimpleDlgContainer@@QAEXH@Z)' in SimpleDlgContainer.cpp:117

If I comment this function, the program compile ok

Code:
void  CSimpleDlgContainer::MudaTexto(TInt buffer)
     {
//     HBufC* labelText;
//    labelText = StringLoader::LoadLC(buffer);
// iLabel->SetTextL(*labelText);
// CleanupStack::PopAndDestroy(labelText);
        //    SizeChanged();
     }

I used the header #include <stringloader.h> // StringLoader

I am not seeing where it is the error.

- thx

Fri, 2006-08-04 22:51
Joined: 2006-03-04
Forum posts: 194
Re: Carbide + S60 2nd + compiler error
Thats not a compilation error thats a link error, hence you are not linking to the library containing StringLoader
Sat, 2006-08-05 03:23
Joined: 2006-05-30
Forum posts: 7
Re: Carbide + S60 2nd + compiler error
then... how can I do this? Must I set some configuration in Carbide?

-thx
Sat, 2006-08-05 10:44
Joined: 2006-07-12
Forum posts: 18
Re: Carbide + S60 2nd + compiler error
You have to link against "CommonEngine.lib" library. Which IDE are you using? Visual Studio ?
Sat, 2006-08-05 19:00
Joined: 2006-05-30
Forum posts: 7
Re: Carbide + S60 2nd + compiler error
I'm using Carbide.C++ Express
http://www.forum.nokia.com/main/resources/tools_and_sdks/carbide/

I setup my Profect->Properties and choose commonengine.lib in Library.

It works.

thanks!
  • Login to reply to this topic.