Error after update

  • GreenFireDragon
    29th Jul 2013 Member 0 Permalink

    The new TPT version is out so I updated my source code, but now I get this errors:

     

    error LNK1120: 3 unresolved externals


    error LNK2001: unresolved external symbol "public: __thiscall RequestBroker::Request::Request(enum RequestBroker::Request::RequestType,struct std::pair<int,class RequestListener *>,int)" (??0Request@RequestBroker@@QAE@W4RequestType@01@U?$pair@HPAVRequestListener@@@std@@H@Z) 


    error LNK2019: unresolved external symbol "public: __thiscall APIRequest::APIRequest(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class APIResultParser *,struct std::pair<int,class RequestListener *>)" (??0APIRequest@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVAPIResultParser@@U?$pair@HPAVRequestListener@@@2@@Z) referenced in function "public: class RequestBroker::Request * __thiscall Client::GetUserInfoAsync(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?GetUserInfoAsync@Client@@QAEPAVRequest@RequestBroker@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)


    error LNK2019: unresolved external symbol "public: __thiscall APIRequest::APIRequest(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >,class APIResultParser *,struct std::pair<int,class RequestListener *>)" (??0APIRequest@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@2@PAVAPIResultParser@@U?$pair@HPAVRequestListener@@@2@@Z) referenced in function "public: class RequestBroker::Request * __thiscall Client::SaveUserInfoAsync(class UserInfo)" (?SaveUserInfoAsync@Client@@QAEPAVRequest@RequestBroker@@VUserInfo@@@Z) 


    error LNK2019: unresolved external symbol "public: __thiscall RequestBroker::Request::Request(enum RequestBroker::Request::RequestType,struct std::pair<int,class RequestListener *>,int)" (??0Request@RequestBroker@@QAE@W4RequestType@01@U?$pair@HPAVRequestListener@@@std@@H@Z) referenced in function "public: __thiscall APIRequest::APIRequest(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class APIResultParser *,struct std::pair<int,class RequestListener *>,int)" (??0APIRequest@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVAPIResultParser@@U?$pair@HPAVRequestListener@@@2@H@Z) 

  • mniip
    29th Jul 2013 Developer 0 Permalink
    did you add new files to your project
  • GreenFireDragon
    29th Jul 2013 Member 0 Permalink

    I deleted original files and added the new, then included all files in project

  • jacob1
    29th Jul 2013 Developer 0 Permalink
    I would say that src/client/requestbroker/ RequestBroker.cpp and APIRequest.cpp aren't included. Also probably not the .h's either.
  • GreenFireDragon
    29th Jul 2013 Member 0 Permalink

    @jacob1 (View Post)

    They're all included 

  • Pilihp64
    29th Jul 2013 Developer 0 Permalink

    Hmm, if you are sure they are all included, I'm not sure what the problem would be, my visual studio works fine.

     

    I removed APIRequest.cpp from my project just for fun, and it matched two of your errors identically, so please triple check that they are in the visual studio project, not just existing in the folder.

     

    Removing RequestBroker.cpp also gave all 4 of those errors (plus more for me).  So please check them.

    Edited once by cracker64. Last: 29th Jul 2013
  • GreenFireDragon
    29th Jul 2013 Member 0 Permalink

    They are all included see for yourself:

     

  • Kikinicij
    29th Jul 2013 Member 0 Permalink
    This post has been removed by Sylvi: Not constructive.
    Edited once by Kikinicij. Last: 29th Jul 2013
  • Simon
    29th Jul 2013 Administrator 0 Permalink
    Try doing a clean & rebuild.
  • GreenFireDragon
    30th Jul 2013 Member 0 Permalink

    @Simon (View Post)

     Thanks, it worked

Locked by cracker64: fixed