Page 1 of 1

Link error on the latest SVN

PostPosted: 31 May 2013, 22:18
by jin
I tried to compile the latest SVN-version (31.5.13). But I received the following link errors.

I am under Win7 x64 using Visual Studio Express 2012.

I use the default 'debug - Win32' mode.

{l Code}: {l Select All Code}
1>race_manager.obj : error LNK2019: unresolved external symbol "public: __thiscall SavedGrandPrix::SavedGrandPrix(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> > const &,enum RaceManager::Difficulty,int,int,class std::vector<struct RaceManager::KartStatus,class std::allocator<struct RaceManager::KartStatus> > const &)" (??0SavedGrandPrix@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0W4Difficulty@RaceManager@@HHABV?$vector@UKartStatus@RaceManager@@V?$allocator@UKartStatus@RaceManager@@@std@@@2@@Z) referenced in function "public: void __thiscall RaceManager::next(void)" (?next@RaceManager@@QAEXXZ)

1>race_manager.obj : error LNK2019: unresolved external symbol "public: void __thiscall SavedGrandPrix::setKarts(class std::vector<struct RaceManager::KartStatus,class std::allocator<struct RaceManager::KartStatus> > const &)" (?setKarts@SavedGrandPrix@@QAEXABV?$vector@UKartStatus@RaceManager@@V?$allocator@UKartStatus@RaceManager@@@std@@@std@@@Z) referenced in function "public: void __thiscall RaceManager::next(void)" (?next@RaceManager@@QAEXXZ)

1>race_manager.obj : error LNK2019: unresolved external symbol "public: void __thiscall SavedGrandPrix::loadKarts(class std::vector<struct RaceManager::KartStatus,class std::allocator<struct RaceManager::KartStatus> > &)" (?loadKarts@SavedGrandPrix@@QAEXAAV?$vector@UKartStatus@RaceManager@@V?$allocator@UKartStatus@RaceManager@@@std@@@std@@@Z) referenced in function "public: void __thiscall RaceManager::startNew(bool)" (?startNew@RaceManager@@QAEX_N@Z)

1>user_config.obj : error LNK2019: unresolved external symbol "public: __thiscall SavedGrandPrix::SavedGrandPrix(class XMLNode const *)" (??0SavedGrandPrix@@QAE@PBVXMLNode@@@Z) referenced in function "public: bool __thiscall UserConfig::loadConfig(void)" (?loadConfig@UserConfig@@QAE_NXZ)


Can someone help me with this problem?
Thanks!

Re: Link error on the latest SVN

PostPosted: 31 May 2013, 23:52
by Auria
Hi,

this error likely means the VS 2012 project has not been updated yet, when a new features comes sometimes it may take a couple days before the project is updated. We hope to improve the process in the future but for now projects are updated manually

if you want to try fixing it yourself, it probably suffices to add file /src/config/saved_grand_prix.cpp to the project

Re: Link error on the latest SVN

PostPosted: 01 Jun 2013, 09:07
by mpujari80
Hi,
Auria is right. Adding /src/config/saved_grand_prix.cpp to the project should build the project under VS2012 (tested with express).
Please find the patch as attached.

thanks
mpujari

Re: Link error on the latest SVN

PostPosted: 01 Jun 2013, 09:48
by jin
Thanks auria and mpujari! :) Now I can successfully compile the SVN version. :D
Thanks,
Jin

Re: Link error on the latest SVN

PostPosted: 01 Jun 2013, 11:54
by hiker
mpujari80 {l Wrote}:Hi,
Auria is right. Adding /src/config/saved_grand_prix.cpp to the project should build the project under VS2012 (tested with express).
Please find the patch as attached.

Applied in r12835 - thanks a lot!
Joerg