Link error on the latest SVN

Link error on the latest SVN

Postby jin » 31 May 2013, 22:18

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!
jin
 
Posts: 23
Joined: 29 May 2013, 17:53

Re: Link error on the latest SVN

Postby Auria » 31 May 2013, 23:52

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
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Link error on the latest SVN

Postby mpujari80 » 01 Jun 2013, 09:07

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
Attachments
vc-link-error.patch
(1.21 KiB) Downloaded 198 times
User avatar
mpujari80
 
Posts: 6
Joined: 02 May 2013, 09:26

Re: Link error on the latest SVN

Postby jin » 01 Jun 2013, 09:48

Thanks auria and mpujari! :) Now I can successfully compile the SVN version. :D
Thanks,
Jin
jin
 
Posts: 23
Joined: 29 May 2013, 17:53

Re: Link error on the latest SVN

Postby hiker » 01 Jun 2013, 11:54

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
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Who is online

Users browsing this forum: No registered users and 1 guest