Error when building spring with vs.net 2003

Error when building spring with vs.net 2003

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Error when building spring with vs.net 2003

Post by submarine »

when trying to build latest svn with vs.net 2003, i always get the following error:

Code: Select all

rts error LNK2019: unresolved external symbol "public: int const * __thiscall PlayerRoster::GetIndices(int *)" (?GetIndices@PlayerRoster@@QAEPBHPAH@Z) referenced in function "public: virtual bool __thiscall CGame::Draw(void)" (?Draw@CGame@@UAE_NXZ)

rts error LNK2001: unresolved external symbol "public: int const * __thiscall PlayerRoster::GetIndices(int *)" (?GetIndices@PlayerRoster@@QAEPBHPAH@Z)
rts error LNK2019: unresolved external symbol "class PlayerRoster playerRoster" (?playerRoster@@3VPlayerRoster@@A) referenced in function "public: virtual bool __thiscall CGame::Draw(void)" (?Draw@CGame@@UAE_NXZ)

rts error LNK2001: unresolved external symbol "class PlayerRoster playerRoster" (?playerRoster@@3VPlayerRoster@@A)

rts error LNK2019: unresolved external symbol "public: bool __thiscall PlayerRoster::SetSortTypeByName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?SetSortTypeByName@PlayerRoster@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall CGame::CGame(bool,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> >,class CInfoConsole *)" (??0CGame@@QAE@_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@1PAVCInfoConsole@@@Z)
rts error LNK2019: unresolved external symbol "public: char const * __thiscall PlayerRoster::GetSortName(void)" (?GetSortName@PlayerRoster@@QAEPBDXZ) referenced in function "public: bool __thiscall CGame::ActionPressed(struct CKeyBindings::Action const &,class CKeySet const &,bool)" (?ActionPressed@CGame@@QAE_NABUAction@CKeyBindings@@ABVCKeySet@@_N@Z)

rts error LNK2019: unresolved external symbol "public: bool __thiscall PlayerRoster::SetSortTypeByCode(enum PlayerRoster::SortType)" (?SetSortTypeByCode@PlayerRoster@@QAE_NW4SortType@1@@Z) referenced in function "public: bool __thiscall CGame::ActionPressed(struct CKeyBindings::Action const &,class CKeySet const &,bool)" 
(?ActionPressed@CGame@@QAE_NABUAction@CKeyBindings@@ABVCKeySet@@_N@Z)

rts error LNK2001: unresolved external symbol "public: bool __thiscall PlayerRoster::SetSortTypeByCode(enum PlayerRoster::SortType)" (?SetSortTypeByCode@PlayerRoster@@QAE_NW4SortType@1@@Z)

rts error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall CClipboard::GetContents(void)const " (?GetContents@CClipboard@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function "public: virtual int __thiscall CGame::KeyPressed(unsigned short,bool)" (?KeyPressed@CGame@@UAEHG_N@Z)

rts error LNK2001: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall CClipboard::GetContents(void)const " (?GetContents@CClipboard@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
rts fatal error LNK1120: 6 unresolved externals
has anyone any idea whats wrong?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

The project file hasn't been updated.

Add Game/PlayerRoster.cpp and System/Platform/Clipboard.cpp and maybe more and it should work.
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Post by submarine »

thx...

hmm i had to add new files a few times before but ususally it stopped when compiling, i just didnt think that new files are needed for the first time that late

anyway, i commited an updated project file
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

I tried compiling with vs71 yesterday and it's missing some boost libs (mutex)... I don't feel like compiling them again so anyone got them at hand? Or are there updated vs7 libs?
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Post by submarine »

oh i forgot: it seems the path is not set correctly, within vclibs there is

/boost1_33/boost/....

but the project files expects those files in

/boost/...

so i just moved the folder instead of editing the paths in the project file
Post Reply

Return to “Engine”