×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    4

    Undefined symbol - Compiling HelloWorld

    Hi All

    I'm wanting to get into Symbian programming and I've spent the past 2 days just trying to get the IDE environment set up so I can compile the basic HelloWorld app. I've got a bit further than I did yesterday, but I've hit a bit of a wall where I can't seem to find the answer on the forum already.

    After having issues with not having the .rsg file, I now have a issue with it complaining about undefined symbols.

    Here's the console output of the build:
    Code:
    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\HelloWorldBasic\group\ target winscw udeb  
      make -r  -f "\Symbian\9.2\S60_3rd_FP1\EPOC32\BUILD\Symbian\Carbide\workspace\HelloWorldBasic\group\WINSCW.make" TARGET CFG=UDEB VERBOSE=-s
    make -j 4 -s  -C \Symbian\Carbide\workspace\HelloWorldBasic\group -f "ICONS_SCALABLE_DC.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=..\..\..\..\..\Symbian\9.2\S60_3rd_FP1\EPOC32\BUILD\Symbian\Carbide\workspace\HelloWorldBasic\group\ICONS_SCALABLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\Symbian\Carbide\workspace\HelloWorldBasic\group PLATFORM=WINSCW CFG=UDEB BLD
    make -j 4 -s  -r -f "\Symbian\9.2\S60_3rd_FP1\EPOC32\BUILD\Symbian\Carbide\workspace\HelloWorldBasic\group\HELLOWORLDBASIC\WINSCW\HELLOWORLDBASIC.WINSCW" UDEB
    helloworldbasic.cpp
    helloworldbasicapplication.cpp
    helloworldbasicappui.cpp
    helloworldbasicappview.cpp
    helloworldbasicdocument.cpp
    helloworldbasicquerydialog.cpp
    HelloWorldBasic.UID.CPP
    mwldsym2.exe: Undefined symbol: 'CEikApplication::~CEikApplication(void) (??1CEikApplication@@UAE@XZ)'
    mwldsym2.exe: referenced from 'CAknApplication::~CAknApplication(void) (??1CAknApplication@@UAE@XZ)' in helloworldbasic.o
    mwldsym2.exe: Undefined symbol: 'CEikApplication::CEikApplication(void) (??0CEikApplication@@IAE@XZ)'
    mwldsym2.exe: referenced from 'CAknApplication::CAknApplication(void) (??0CAknApplication@@QAE@XZ)' in helloworldbasic.o
    mwldsym2.exe: Undefined symbol: 'void * User::AllocZ(int) (?AllocZ@User@@SAPAXH@Z)'
    mwldsym2.exe: referenced from 'void * CBase::operator new(unsigned int) (??2CBase@@SAPAXI@Z)' in e32base.inl:36
    mwldsym2.exe: Undefined symbol: 'TApaApplicationFactory::TApaApplicationFactory(class CApaApplication * (*)(void)) (??0TApaApplicationFactory@@QAE@P6APAVCApaApplication@@XZ@Z)'
    mwldsym2.exe: referenced from 'int E32Main(void) (?E32Main@@YAHXZ)' in helloworldbasic.cpp:34
    mwldsym2.exe: Undefined symbol: 'int EikStart::RunApplication(class TApaApplicationFactory) (?RunApplication@EikStart@@SAHVTApaApplicationFactory@@@Z)'
    mwldsym2.exe: referenced from 'int E32Main(void) (?E32Main@@YAHXZ)' in helloworldbasic.cpp:34
    mwldsym2.exe: Undefined symbol: 'int CBase::Extension_(unsigned int, void * &, void *) (?Extension_@CBase@@MAEHIAAPAXPAX@Z)'
    mwldsym2.exe: referenced from 'const CAknApplication::`vftable' (??_7CAknApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicAppUi::`vftable' (??_7CHelloWorldBasicAppUi@@6B@~)' in helloworldbasicappui.o
    mwldsym2.exe: referenced from 'const CAknAppUi::`vftable' (??_7CAknAppUi@@6B@~)' in helloworldbasicappui.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicAppView::`vftable' (??_7CHelloWorldBasicAppView@@6B@~)' in helloworldbasicappview.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicDocument::`vftable' (??_7CHelloWorldBasicDocument@@6B@~)' in helloworldbasicdocument.o
    mwldsym2.exe: referenced from 'const CAknDocument::`vftable' (??_7CAknDocument@@6B@~)' in helloworldbasicdocument.o
    mwldsym2.exe: referenced from 'const CHelloWorldQueryDialog::`vftable' (??_7CHelloWorldQueryDialog@@6B@~)' in helloworldbasicquerydialog.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicApplication::`vftable' (??_7CHelloWorldBasicApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: Undefined symbol: 'void CApaApplication::CApaApplication_Reserved2(void) (?CApaApplication_Reserved2@CApaApplication@@MAEXXZ)'
    mwldsym2.exe: referenced from 'const CAknApplication::`vftable' (??_7CAknApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicApplication::`vftable' (??_7CHelloWorldBasicApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: Undefined symbol: 'void CApaApplication::CApaApplication_Reserved1(void) (?CApaApplication_Reserved1@CApaApplication@@MAEXXZ)'
    mwldsym2.exe: referenced from 'const CAknApplication::`vftable' (??_7CAknApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicApplication::`vftable' (??_7CHelloWorldBasicApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: Undefined symbol: 'class TBuf<256> CApaApplication::AppFullName(void) const (?AppFullName@CApaApplication@@UBE?AV?$TBuf@$0BAA@@@XZ)'
    mwldsym2.exe: referenced from 'const CAknApplication::`vftable' (??_7CAknApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicApplication::`vftable' (??_7CHelloWorldBasicApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: Undefined symbol: 'void CEikApplication::CEikApplication_Reserved2(void) (?CEikApplication_Reserved2@CEikApplication@@EAEXXZ)'
    mwldsym2.exe: referenced from 'const CAknApplication::`vftable' (??_7CAknApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicApplication::`vftable' (??_7CHelloWorldBasicApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: Undefined symbol: 'void CEikApplication::CEikApplication_Reserved1(void) (?CEikApplication_Reserved1@CEikApplication@@EAEXXZ)'
    mwldsym2.exe: referenced from 'const CAknApplication::`vftable' (??_7CAknApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicApplication::`vftable' (??_7CHelloWorldBasicApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: Undefined symbol: 'class TBuf<256> CEikApplication::ResourceFileName(void) const (?ResourceFileName@CEikApplication@@UBE?AV?$TBuf@$0BAA@@@XZ)'
    mwldsym2.exe: referenced from 'const CAknApplication::`vftable' (??_7CAknApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicApplication::`vftable' (??_7CHelloWorldBasicApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: Undefined symbol: 'class CApaDocument * CEikApplication::CreateDocumentL(class CApaProcess *) (?CreateDocumentL@CEikApplication@@MAEPAVCApaDocument@@PAVCApaProcess@@@Z)'
    mwldsym2.exe: referenced from 'const CAknApplication::`vftable' (??_7CAknApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicApplication::`vftable' (??_7CHelloWorldBasicApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: Undefined symbol: 'void CEikApplication::Capability(class TDes8 &) const (?Capability@CEikApplication@@UBEXAAVTDes8@@@Z)'
    mwldsym2.exe: referenced from 'const CAknApplication::`vftable' (??_7CAknApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicApplication::`vftable' (??_7CHelloWorldBasicApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: Undefined symbol: 'class TBuf<256> CEikApplication::BitmapStoreName(void) const (?BitmapStoreName@CEikApplication@@UBE?AV?$TBuf@$0BAA@@@XZ)'
    mwldsym2.exe: referenced from 'const CAknApplication::`vftable' (??_7CAknApplication@@6B@~)' in helloworldbasic.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicApplication::`vftable' (??_7CHelloWorldBasicApplication@@6B@~)' in helloworldbasic.o
    etc, etc, etc
    Code:
    User break, cancelled...
    make[1]: *** [\Symbian\9.2\S60_3rd_FP1\EPOC32\RELEASE\WINSCW\UDEB\HelloWorldBasic.exe] Error 2
    make: *** [TARGETHELLOWORLDBASIC] Error 2
    mwldsym2.exe: referenced from 'const CHelloWorldBasicAppUi::`vftable' (??_7CHelloWorldBasicAppUi@@6B@~)' in helloworldbasicappui.o
    mwldsym2.exe: Undefined symbol: 'void CAknAppUi::HandleSystemEventL(class TWsEvent const &) (?HandleSystemEventL@CAknAppUi@@MAEXABVTWsEvent@@@Z)'
    mwldsym2.exe: referenced from 'const CAknAppUi::`vftable' (??_7CAknAppUi@@6B@~)' in helloworldbasicappui.o
    mwldsym2.exe: referenced from 'const CHelloWorldBasicAppUi::`vftable' (??_7CHelloWorldBasicAppUi@@6B@~)' in helloworldbasicappui.o
    mwldsym2.exe: Undefined symbol: 'void CAknAppUi::HandleTouchPaneSizeChange(void) (?HandleTouchPaneSizeChange@CAknAppUi@@UAEXXZ)'
    mwldsym2.exe: referenced from 'const CHelloWorldBasicAppUi::`vftable' (??_7CHelloWorldBasicAppUi@@6B@~)' in helloworldbasicappui.o
    mwldsym2.exe: referenced from 'const CAknAppUi::`vftable' (??_7CAknAppUi@@6B@~)' in helloworldbasicappui.o
    mwldsym2.exe: referenced from '@100@?HandleTouchPaneSizeChange@CAknAppUi@@UAEXXZ' in helloworldbasicappui.o
    Too many errors printed, aborting program
    
    Total Time: 4 sec
    
    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\HelloWorldBasic\group\ final winscw udeb  
      make -r  -f "\Symbian\9.2\S60_3rd_FP1\EPOC32\BUILD\Symbian\Carbide\workspace\HelloWorldBasic\group\WINSCW.make" FINAL CFG=UDEB VERBOSE=-s
    make -j 4 -s  -C \Symbian\Carbide\workspace\HelloWorldBasic\group -f "ICONS_SCALABLE_DC.MK" TO_ROOT=..\..\..\..\.. EPOCBLD=..\..\..\..\..\Symbian\9.2\S60_3rd_FP1\EPOC32\BUILD\Symbian\Carbide\workspace\HelloWorldBasic\group\ICONS_SCALABLE_DC\WINSCW TO_BLDINF=..\..\..\..\..\Symbian\Carbide\workspace\HelloWorldBasic\group PLATFORM=WINSCW CFG=UDEB FINAL
    
    Total Time: 4 sec
    
    ***Invoking abld command
    perl.exe -S ABLD.PL \Symbian\Carbide\workspace\HelloWorldBasic\group\ test export  
      make -r  -f "\Symbian\9.2\S60_3rd_FP1\EPOC32\BUILD\Symbian\Carbide\workspace\HelloWorldBasic\group\EXPORTtest.make" EXPORT VERBOSE=-s
    Nothing to do
    
    Total Time: 4 sec
    
    ***Errors were detected in build. See the Problems or Console view for details.
    
    Total Time: 4 sec
    Perl is correctly installed, I am using Carbide.c++ 2.0.0 in conjunction with SDK 9.2 S60 3rd FP1

    Any help greatly appreciated

    Syn

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Undefined symbol - Compiling HelloWorld

    All those error are linker errors so you are missed to add corresponding Libraries. Where you will get the library names to be added ? In your SDK Docs.

  3. #3
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: Undefined symbol - Compiling HelloWorld

    can you show your mmp file ?

    does it have these lines...
    LIBRARY euser.lib
    LIBRARY apparc.lib
    LIBRARY cone.lib
    LIBRARY eikcore.lib
    LIBRARY avkon.lib
    and some more like these ?


    This one is a simple issue, i guess you should have not hit this if you haven't modified the example...
    Amit Kankani
    Nokia Developer Champion

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: Undefined symbol - Compiling HelloWorld

    Indeed, the .mmp file in http://discussion.forum.nokia.com/fo...ad.php?t=77184 does not contain any libraries. Why have not you simply built the example before modifying it?

  5. #5
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: Undefined symbol - Compiling HelloWorld

    So I suggest you first build the code as it is, then go on modifying (very less likely you will need to remove any library in the process atleast).

    Also you can take the example and compare your existing code to the example and see other errors you might hit in future, before posting it out here...

    hope u get this and get the linking thru !
    Amit Kankani
    Nokia Developer Champion

  6. #6
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: Undefined symbol - Compiling HelloWorld

    Hi,

    One more thing, there would not be a any single space in the path and folders name;
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  7. #7
    Registered User
    Join Date
    Apr 2009
    Posts
    4

    Re: Undefined symbol - Compiling HelloWorld

    Okay I figured out the problem and it did have to do with the .mmp file. I had not modified the code at all, but when I created the project, I created a clean project in Carbide and the copied the folders from the example directory into the project folder. The .mmp file didn't copy properly and it used the default .mmp file which obvisouly didn't contain any of the correct settings in the .mmp file. This also explains why I had issues with the .rsg file not being created at compile.

    Thanks for the point in theright direction and expect more stupid mistakes from me in the future

    Syn

Similar Threads

  1. Problem in CAknTextQueryDialog
    By saaa_persistent in forum Symbian User Interface
    Replies: 5
    Last Post: 2009-07-30, 08:58
  2. Head Set Status
    By arunmdevan in forum Symbian
    Replies: 15
    Last Post: 2009-02-28, 04:30
  3. [moved] HELP! Phone Debug (GCCE)
    By joseph.m in forum Symbian
    Replies: 18
    Last Post: 2008-07-14, 10:42
  4. mwldsym2.exe: Undefined symbol in Carbide.C++ 1.3
    By ValentinK in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-03-14, 15:23
  5. illegal use of abstract class error...
    By kannabiran.krish in forum Symbian
    Replies: 7
    Last Post: 2007-08-17, 10:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×