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)
I deleted original files and added the new, then included all files in project
They're all included
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.
They are all included see for yourself:
Thanks, it worked