×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89

    Errors building project in VS.2003

    Hi.

    I tried to build my project, but there are errors telling me that libraries are not there, but there defined in my mmp file.

    Here are the errors:
    PHP Code:
    PillenweckerModel.obj error LNK2019unresolved external symbol "public: int __thiscall CDBase::CreateDB(void)" (?CreateDB@CDBase@@QAEHXZreferenced in function "public: void __thiscall CPillenweckerModel::ConstructL(void)" (?ConstructL@CPillenweckerModel@@QAEXXZ)
    PillenweckerModel.obj error LNK2019unresolved external symbol "public: void __thiscall CDBase::SetDBFileName(class TDesC16 const &)" (?SetDBFileName@CDBase@@QAEXABVTDesC16@@@Zreferenced in function "public: void __thiscall CPillenweckerModel::ConstructL(void)" (?ConstructL@CPillenweckerModel@@QAEXXZ)
    PillenweckerModel.obj error LNK2019unresolved external symbol "public: static class CDBase * __cdecl CDBase::NewL(void)" (?NewL@CDBase@@SAPAV1@XZreferenced in function "public: void __thiscall CPillenweckerModel::ConstructL(void)" (?ConstructL@CPillenweckerModel@@QAEXXZ
    This is my mmp file:
    PHP Code:
    // Pillenwecker.mmp
    TARGET                                  Pillenwecker.app 
    TARGETTYPE                              app 
    UID                                     0x100039CE 0x0add5608 
    TARGETPATH                              
    \system\apps\Pillenwecker 
    LANG                                    01 
    SYSTEMINCLUDE                           
    \epoc32\include 
    USERINCLUDE                             
    USERINCLUDE                             ..\inc 
    SOURCEPATH                              

    RESOURCE                                Pillenwecker.rss 
    RESOURCE                                Pillenwecker_caption
    .rss 

    SOURCEPATH                              
    ..\src 
    SOURCE                                  Pillenwecker
    .cpp 
    SOURCE                                  PillenweckerApplication
    .cpp 
    SOURCE                                  PillenweckerAppUi
    .cpp 
    SOURCE                                  PillenweckerAppView
    .cpp 
    SOURCE                                  PillenweckerDocument
    .cpp 
    SOURCE                                  PillenweckerModel
    .cpp 
    SOURCE                                  PillenweckerviewZeitView
    .cpp 
    SOURCE                                  PillenweckerviewZeitContainer
    .cpp 
    SOURCE                                  PillenweckerviewNeuAlarmView
    .cpp 
    SOURCE                                  PillenweckerviewNeuAlarmContainer
    .cpp 
    SOURCE                                  PillenweckerviewAlarmeView
    .cpp 
    SOURCE                                  PillenweckerviewAlarmeContainer
    .cpp 
    SOURCE                                  PillenweckerviewStartView
    .cpp 
    SOURCE                                  PillenweckerviewStartContainer
    .cpp 

    LIBRARY                                 efsrv
    .lib 
    LIBRARY                                 edbms
    .lib 
    LIBRARY                                 avkon
    .lib 
    LIBRARY                                 aknnotify
    .lib 
    LIBRARY                                 apparc
    .lib 
    LIBRARY                                 bafl
    .lib 
    LIBRARY                                 cone
    .lib 
    LIBRARY                                 egul
    .lib 
    LIBRARY                                 eikcoctl
    .lib 
    LIBRARY                                 eikcore
    .lib 
    LIBRARY                                 eikctl
    .lib 
    LIBRARY                                 eikdlg
    .lib 
    LIBRARY                                 etext
    .lib 
    LIBRARY                                 euser
    .lib 
    LIBRARY                                 fbscli
    .lib 
    LIBRARY                                 form
    .lib 
    LIBRARY                                 gdi
    .lib 
    LIBRARY                                 insock
    .lib 
    AIF                                     Pillenwecker
    .aif ..\aif PillenweckerAif.rss c12 defaultIcon_44x44.bmp defaultIcon_44x44_mask.bmp defaultIcon_42x29.bmp defaultIcon_42x29_mask.bmp 
    /* [+] */ START BITMAP Pillenwecker.mbm 
      
    /* [+] */ TARGETPATH                    \system\apps\Pillenwecker 
      
    /* [+] */ HEADER                         
      
    /* [+] */ SOURCEPATH                              ..\aif 
      
    /* [+] */ source                        c24 defaultIcon_44x44.bmp 
      
    /* [+] */ source                        1 defaultIcon_44x44_mask.bmp 
      
    /* [+] */ source                        c24 defaultIcon_42x29.bmp 
      
    /* [+] */ source                        1 defaultIcon_42x29_mask.bmp 
      
    /* [+] */ source                        c24 medremind.bmp 

    /* [+] */ END  

    // [-]    START BITMAP Pillenwecker.mbm 
      // [-]    TARGETPATH                    \system\apps\Pillenwecker 
      // [-]    HEADER                         
      // [-]    SOURCEPATH                              ..\aif 
      // [-]    SOURCE                        c24 defaultIcon_44x44.bmp 
      // [-]    SOURCE                        1 defaultIcon_44x44_mask.bmp 

      // [-]    SOURCEPATH                              ..\datasrc 
      // [-]    SOURCE                        c24 default.bmp 
      // [-]    SOURCE                        1 default_mask.bmp 

    // [-]    END 
    Could someone help me please?

    I can't find the error.

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Smile Re: Errors building project in VS.2003

    Hello dear,

    From the Menu Bar:
    Project->Carbide.vs Properties->Uncheck Update .mmp File check box
    This is a tricky one.

    Another approach:
    You can add additional libraries from:
    Project->YourProject's Properties in one of the fields,you would find entries of your previous libraries. Just add your additional libraries there.
    Then Rebuild the project.

    Then it's all yours.

    Regards.
    Kiran.

  3. #3
    Regular Contributor
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89

    Re: Errors building project in VS.2003

    I unchecked it, the start to build. No success, the error ist still there
    thanks.

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Smile Re: Errors building project in VS.2003

    Hi,

    Then follow the another approach i have suggested.
    You can add additional libraries from:
    Project->YourProject's Properties in one of the fields,you would find entries of your previous libraries. Just add your additional libraries there.
    Then Rebuild the project.
    Regards.
    Kiran.

  5. #5
    Regular Contributor
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89

    Re: Errors building project in VS.2003

    I've added the libraries unter Project Properties->Linker->Input and got no success. After that i deleted my project files and imported the mmp file and...it doesn't work. I'm frustrated.

    That's the mmp i imported:

    Code:
    // Pillenwecker.mmp
    TARGET                                  Pillenwecker.app 
    TARGETTYPE                              app 
    UID                                     0x100039CE 0x0add5608 
    TARGETPATH                              \system\apps\Pillenwecker 
    LANG                                    01 
    SYSTEMINCLUDE                           \epoc32\include 
    USERINCLUDE                             . 
    USERINCLUDE                             ..\inc 
    SOURCEPATH                              . 
    RESOURCE                                Pillenwecker.rss 
    RESOURCE                                Pillenwecker_caption.rss 
    
    SOURCEPATH                              ..\src 
    SOURCE                                  Pillenwecker.cpp 
    SOURCE                                  PillenweckerApplication.cpp 
    SOURCE                                  PillenweckerAppUi.cpp 
    SOURCE                                  PillenweckerAppView.cpp 
    SOURCE                                  PillenweckerDocument.cpp 
    SOURCE                                  PillenweckerModel.cpp 
    SOURCE                                  PillenweckerviewZeitView.cpp 
    SOURCE                                  PillenweckerviewZeitContainer.cpp 
    SOURCE                                  PillenweckerviewNeuAlarmView.cpp 
    SOURCE                                  PillenweckerviewNeuAlarmContainer.cpp 
    SOURCE                                  PillenweckerviewAlarmeView.cpp 
    SOURCE                                  PillenweckerviewAlarmeContainer.cpp 
    SOURCE                                  PillenweckerviewStartView.cpp 
    SOURCE                                  PillenweckerviewStartContainer.cpp 
    
    LIBRARY                                 efsrv.lib 
    LIBRARY                                 edbms.lib 
    LIBRARY                                 avkon.lib 
    LIBRARY                                 aknnotify.lib 
    LIBRARY                                 apparc.lib 
    LIBRARY                                 bafl.lib 
    LIBRARY                                 cone.lib 
    LIBRARY                                 egul.lib 
    LIBRARY                                 eikcoctl.lib 
    LIBRARY                                 eikcore.lib 
    LIBRARY                                 eikctl.lib 
    LIBRARY                                 eikdlg.lib 
    LIBRARY                                 etext.lib 
    LIBRARY                                 euser.lib 
    LIBRARY                                 fbscli.lib 
    LIBRARY                                 form.lib 
    LIBRARY                                 gdi.lib 
    LIBRARY                                 insock.lib 
    AIF                                     Pillenwecker.aif ..\aif PillenweckerAif.rss c12 defaultIcon_44x44.bmp defaultIcon_44x44_mask.bmp defaultIcon_42x29.bmp defaultIcon_42x29_mask.bmp 
    START BITMAP Pillenwecker.mbm 
    TARGETPATH                    \system\apps\Pillenwecker 
    HEADER                         
    SOURCEPATH                              ..\aif 
    source                        c24 defaultIcon_44x44.bmp 
    source                        1 defaultIcon_44x44_mask.bmp 
    source                        c24 defaultIcon_42x29.bmp 
    source                        1 defaultIcon_42x29_mask.bmp 
    source                        c24 medremind.bmp 
    END
    Thanks for your help, that's very kind of you

  6. #6
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Errors building project in VS.2003

    The problem is that the linker cannot find implementations for your functions.

    Check to make sure implementations in the .cpp file are correct and specially the function declaration in the .cpp file.

    It could also be that the .cpp file that implements these functions is not included in your project.

    What is the name of the .cpp file that contains these functions?

  7. #7
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Question Re: Errors building project in VS.2003

    Hello,

    It's strange. It works for me.

    What are the specific API you are using with your project?
    And what are the specific libraries you are adding in your .mmp file?

    EDIT: Yes, Paul's suggestion is right. Please provide requested information.

    Regards.
    Kiran.

  8. #8
    Regular Contributor
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89

    Re: Errors building project in VS.2003

    I reimported the mmp-file and know it works. hmm...

    But i've got another problem: The emulator needs half an hour to start and cancels with the error: "Programm closed Starter Server". Normally it takes 10-15 seconds to load. I'm getting crazy....

    Thanks for your help and for your patience.

  9. #9
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Smile Re: Errors building project in VS.2003

    Hello dear,

    Problem could be somewhere in your implementation.

    Just open the EPOCWIND.OUT file from the:
    C:\....\Document and settings\..\Local Settings\Temp\.

    You would find the actual errror somewhere at the end of that file.

    Just check it out.

    Regards.
    Kiran.

  10. #10
    Regular Contributor
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89

    Re: Errors building project in VS.2003

    Hi.

    These are the contents of the file:
    Code:
    DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4Timer has been called back! EikClock updates.SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4SplashScreen: CTimeout::RunL End of the splashCWsClient::ConstructL FinishSplashScreen: ~CWsClientSplashScreen: DoIt FinishStarter:EnvChange 4Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.CEikClock: Adjusted!Timer has been called back! EikClock updates.CEikClock: Adjusted!Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.CEikClock: Adjusted!Timer has been called back! EikClock updates.Timer has been called back! EikClock updates.
    Thank you!

  11. #11
    Regular Contributor
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89

    Re: Errors building project in VS.2003

    If i use the emulator debug for S60 2nd Edition FP2 i get these errors:

    Code:
    Generating AIF file.
    File E:\Projekte\Pillenwecker\aif\PillenweckerAif.mbm up-to-date, not converted.
    epocroot = \SymbianSDK\8.0a\S60_2nd_FP2\
    * e:\SymbianSDK\8.0a\S60_2nd_FP2\\epoc32\gcc\bin\cpp.exe -undef -C -I e:\SymbianSDK\8.0a\S60_2nd_FP2\epoc32\include -I . -I e:\SymbianSDK\8.0a\S60_2nd_FP2\\Epoc32\include -D_UNICODE -D__SYMBIAN32__ -D__SERIES60_26__ -D__SERIES60_2X__ -D__SERIES60_2ND_FP2__ -D__SERIES60_2FP2__ -D__WINS__ -D__VC32__ E:\Projekte\Pillenwecker\aif\PillenweckerAif.rss -o E:\Projekte\Pillenwecker\aif\PillenweckerAif.rpp
    epocroot = \SymbianSDK\8.0a\S60_2nd_FP2\
    * e:\SymbianSDK\8.0a\S60_2nd_FP2\\epoc32\tools\rcomp.exe -u -oE:\Projekte\Pillenwecker\aif\PillenweckerAif.rsc -sE:\Projekte\Pillenwecker\aif\PillenweckerAif.rpp -iE:\Projekte\Pillenwecker\aif\PillenweckerAif.rss
    ERROR: RCMake failed: Object reference not set to an instance of an object.
    Project : error PRJ0019: A tool returned an error code from "Performing Pre-Build Event..."

  12. #12
    Regular Contributor
    Join Date
    May 2006
    Location
    Oldenburg/Germany
    Posts
    89

    Re: Errors building project in VS.2003

    The problem is solved. I reinstalled the SDKs and all errors are gone now.
    Thank you!

Similar Threads

  1. [newbie here] Link error
    By xitpu in forum Symbian
    Replies: 3
    Last Post: 2007-01-24, 16:53
  2. Error building a wizard generated project
    By degree1911 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 3
    Last Post: 2006-08-26, 00:30
  3. Example Icons not shown : Please help !
    By Mauro_Nokia in forum Symbian
    Replies: 4
    Last Post: 2006-07-07, 09:25
  4. Replies: 5
    Last Post: 2006-05-31, 07:23
  5. Tips on using NDS 1.1
    By mitts in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2006-01-18, 16:07

Posting Permissions

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