×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Aug 2007
    Posts
    69

    Help with lnk2019 lnk1120 error

    Would appreciate any help I can get here.

    I have just downloaded the smshandler example from the wiki site. However I'm having errors when compiling them. I believe it came from this line.


    CSmsHandler* iSmsHandler; iSmsHandler = CSmsHandler::NewL();



    My mpp file is the following.
    Code:
    TARGET                                  SMSbyEXE.exe 
    TARGETTYPE                              exe 
    UID                                     0 
    USERINCLUDE                             ..\inc 
    SYSTEMINCLUDE                           \epoc32\include 
    DOCUMENT                                bld.inf 
    SOURCEPATH                              ..\src 
    SOURCE                                  SMSbyEXE.cpp 
    SOURCE                                  SMSHandler.cpp 
    
    LIBRARY                                 euser.lib 
    // [-]    LIBRARY                       msgs.lib 
    // [-]    LIBRARY                       smcm.lib 
    // [-]    LIBRARY                       gsmu.lib 
    // [-]    LIBRARY                       mtur.lib

    below is the error i got from compiling


    SMShandler.obj : error LNK2019: unresolved external symbol "public: __thiscall CMsvEntrySelection::CMsvEntrySelection(void)" (??0CMsvEntrySelection@@QAE@XZ) referenced in function "private: void __thiscall CSmsHandler::ConstructL(void)" (?ConstructL@CSmsHandler@@AAEXXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: static class CMsvSession * __cdecl CMsvSession::OpenAsyncL(class MMsvSessionObserver &)" (?OpenAsyncL@CMsvSession@@SAPAV1@AAVMMsvSessionObserver@@@Z) referenced in function "private: void __thiscall CSmsHandler::ConstructL(void)" (?ConstructL@CSmsHandler@@AAEXXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: __thiscall TMsvEntry::TMsvEntry(class TMsvEntry const &)" (??0TMsvEntry@@QAE@ABV0@@Z) referenced in function "protected: virtual void __thiscall CSmsHandler::RunL(void)" (?RunL@CSmsHandler@@MAEXXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: int __thiscall RMsvServerSession::ServiceProgress(long,class TDes8 &)" (?ServiceProgress@RMsvServerSession@@QAEHJAAVTDes8@@@Z) referenced in function "public: int __thiscall CMsvSession::ServiceProgress(long,class TDes8 &)" (?ServiceProgress@CMsvSession@@QAEHJAAVTDes8@@@Z)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: static class CMsvEntry * __cdecl CMsvEntry::NewL(class CMsvSession &,long,class TMsvSelectionOrdering const &)" (?NewL@CMsvEntry@@SAPAV1@AAVCMsvSession@@JABVTMsvSelectionOrdering@@@Z) referenced in function "private: int __thiscall CSmsHandler::CreateMsgL(void)" (?CreateMsgL@CSmsHandler@@AAEHXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: __thiscall TMsvSelectionOrdering::TMsvSelectionOrdering(void)" (??0TMsvSelectionOrdering@@QAE@XZ) referenced in function "private: int __thiscall CSmsHandler::CreateMsgL(void)" (?CreateMsgL@CSmsHandler@@AAEHXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: class CBaseMtm * __thiscall CClientMtmRegistry::NewMtmL(class TUid)" (?NewMtmL@CClientMtmRegistry@@QAEPAVCBaseMtm@@VTUid@@@Z) referenced in function "private: void __thiscall CSmsHandler::AccessMtmL(void)" (?AccessMtmL@CSmsHandler@@AAEXXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: static class CClientMtmRegistry * __cdecl CClientMtmRegistry::NewL(class CMsvSession &,class TTimeIntervalMicroSeconds32)" (?NewL@CClientMtmRegistry@@SAPAV1@AAVCMsvSession@@VTTimeIntervalMicroSeconds32@@@Z) referenced in function "private: void __thiscall CSmsHandler::AccessMtmL(void)" (?AccessMtmL@CSmsHandler@@AAEXXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: class CMsvOperation * __thiscall CMsvEntry::MoveL(long,long,class TRequestStatus &)" (?MoveL@CMsvEntry@@QAEPAVCMsvOperation@@JJAAVTRequestStatus@@@Z) referenced in function "private: int __thiscall CSmsHandler::CreateMsgL(void)" (?CreateMsgL@CSmsHandler@@AAEHXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: void __thiscall CMsvEntry::ChangeL(class TMsvEntry const &)" (?ChangeL@CMsvEntry@@QAEXABVTMsvEntry@@@Z) referenced in function "private: int __thiscall CSmsHandler::CreateMsgL(void)" (?CreateMsgL@CSmsHandler@@AAEHXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: class TPtrC16 __thiscall CSmsNumber::Address(void)const " (?Address@CSmsNumber@@QBE?AVTPtrC16@@XZ) referenced in function "private: int __thiscall CSmsHandler::CreateMsgL(void)" (?CreateMsgL@CSmsHandler@@AAEHXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: void __thiscall CSmsHeader::SetSmsSettingsL(class CSmsMessageSettings const &)" (?SetSmsSettingsL@CSmsHeader@@QAEXABVCSmsMessageSettings@@@Z) referenced in function "private: int __thiscall CSmsHandler::CreateMsgL(void)" (?CreateMsgL@CSmsHandler@@AAEHXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: void __thiscall CSmsSettings::CopyL(class CSmsSettings const &)" (?CopyL@CSmsSettings@@QAEXABV1@@Z) referenced in function "private: int __thiscall CSmsHandler::CreateMsgL(void)" (?CreateMsgL@CSmsHandler@@AAEHXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: static class CSmsSettings * __cdecl CSmsSettings::NewL(void)" (?NewL@CSmsSettings@@SAPAV1@XZ) referenced in function "private: int __thiscall CSmsHandler::CreateMsgL(void)" (?CreateMsgL@CSmsHandler@@AAEHXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: void __thiscall CBaseMtm::SwitchCurrentEntryL(long)" (?SwitchCurrentEntryL@CBaseMtm@@QAEXJ@Z) referenced in function "private: int __thiscall CSmsHandler::CreateMsgL(void)" (?CreateMsgL@CSmsHandler@@AAEHXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: class TPtrC16 __thiscall CSmsPDU::ServiceCenterAddress(void)const " (?ServiceCenterAddress@CSmsPDU@@QBE?AVTPtrC16@@XZ) referenced in function "public: class TPtrC16 __thiscall CSmsMessage::ServiceCenterAddress(void)const " (?ServiceCenterAddress@CSmsMessage@@QBE?AVTPtrC16@@XZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: void __thiscall CSmsPDU::SetServiceCenterAddressL(class TDesC16 const &)" (?SetServiceCenterAddressL@CSmsPDU@@QAEXABVTDesC16@@@Z) referenced in function "public: void __thiscall CSmsMessage::SetServiceCenterAddressL(class TDesC16 const &)" (?SetServiceCenterAddressL@CSmsMessage@@QAEXABVTDesC16@@@Z)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: class CBaseMtmUi * __thiscall CMtmUiRegistry::NewMtmUiL(class CBaseMtm &)" (?NewMtmUiL@CMtmUiRegistry@@QAEPAVCBaseMtmUi@@AAVCBaseMtm@@@Z) referenced in function "public: void __thiscall CSmsHandler::ViewL(void)" (?ViewL@CSmsHandler@@QAEXXZ)
    SMShandler.obj : error LNK2019: unresolved external symbol "public: static class CMtmUiRegistry * __cdecl CMtmUiRegistry::NewL(class CMsvSession &,class TTimeIntervalMicroSeconds32)" (?NewL@CMtmUiRegistry@@SAPAV1@AAVCMsvSession@@VTTimeIntervalMicroSeconds32@@@Z) referenced in function "public: void __thiscall CSmsHandler::ViewL(void)" (?ViewL@CSmsHandler@@QAEXXZ)
    C:\Symbian\7.0s\Series60_v21\\Epoc32\release\wins\udeb\SMSbyEXE.exe : fatal error LNK1120: 19 unresolved externals

    Build log was saved at "file://c:\Symbian\dev\SMSbyEXE\Deb_S60_21_WINS\BuildLog.htm"
    SMSbyEXE - 20 error(s), 0 warning(s)



    could some1 help me identify the problem? thx in advance

  2. #2
    Super Contributor
    Join Date
    Oct 2005
    Posts
    739

    Re: Help with lnk2019 lnk1120 error

    Hi,

    Why you have commented that libraries in your mmp file?

    Peter

  3. #3
    Regular Contributor
    Join Date
    Aug 2007
    Posts
    69

    Re: Help with lnk2019 lnk1120 error

    I have no idea, it seems to be auto updated somehow even if I decide not to save the changes.

  4. #4
    Super Contributor
    Join Date
    Oct 2005
    Posts
    739

    Re: Help with lnk2019 lnk1120 error

    Hi,

    Remove that comments from the mmp file, save it and re-import the project to your IDE.

    Then tell us what happens.

    regards,
    Peter

  5. #5
    Regular Contributor
    Join Date
    Aug 2007
    Posts
    69

    Re: Help with lnk2019 lnk1120 error

    thx for the reply
    i have already cleanup the .mpp file and rebuilt the whole thing. it seems htat the same problem still persists

  6. #6
    Super Contributor
    Join Date
    Oct 2005
    Posts
    739

    Re: Help with lnk2019 lnk1120 error

    Quote Originally Posted by yuenfatt View Post
    thx for the reply
    i have already cleanup the .mpp file and rebuilt the whole thing. it seems htat the same problem still persists
    Hi,

    Once you have modified the mmp file of a project, it will not mkae up with the changes until you re-import the project( not rebuid). You should close the project from IDE and then import the project to IDE and then biuld it.

    Have you done this process or just build again?

    Regards,
    Peter

  7. #7
    Regular Contributor
    Join Date
    Aug 2007
    Posts
    69

    Re: Help with lnk2019 lnk1120 error

    thx for the info.

    however another problem came up when i rebuilt it.

    eexe.lib(UP_EXE.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators
    eexe.lib(UP_EXE.obj) : warning LNK4099: PDB 'eexe.pdb' was not found with 'C:\Symbian\7.0s\Series60_v21\\Epoc32\release\wins\udeb\eexe.lib' or at 'c:\Symbian\dev\SMSbyEXE\eexe.pdb'; linking object as if no debug info

  8. #8
    Super Contributor
    Join Date
    Oct 2005
    Posts
    739

    Re: Help with lnk2019 lnk1120 error

    Hi,

    Do you have any errors other than these warnings?

    Are you able to build or run the project?

    Regards,
    Peter

  9. #9
    Regular Contributor
    Join Date
    Aug 2007
    Posts
    69

    Re: Help with lnk2019 lnk1120 error

    thx a lot for your help, i was able to get through it. seems like i messed up earlier in the first part. was able to get through most of it after i redid the .mpp file.

Similar Threads

  1. i cant build helloworld project
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2008-12-22, 12:38
  2. Carbide.vs 2.01 Registration Problem
    By baykal in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2006-12-22, 16:55
  3. carbide build problem help please
    By berkcekisbas in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-09-26, 19:41
  4. My BuilderX (with S60 SDK 2.1.NET MS version) cannot build ARMI UREL
    By danielvidonyi@hotmail.com in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-05-04, 21:30
  5. User break point error in Grid
    By ag24master in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-08-07, 08:20

Posting Permissions

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