Page 1 of 1

Getting a ton of linking errors when compiling

PostPosted: Thu Feb 24, 2011 8:40 pm
by bobdaduck
So I'm getting this on a clean compile. I have the files for win_include_do_not_distribute, as far as I know. Am I missing some important file or something, or is some solid problem I will never be able to get around?

Anyone know anything?

  Code:
1>------ Build started: Project: master, Configuration: Debug Win32 ------
1>config.obj : error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Zap::lcase(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?lcase@Zap@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V23@@Z) referenced in function "void __cdecl processConfigLine(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > * const)" (?processConfigLine@@YAXHQAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>database.obj : error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Zap::itos(unsigned __int64)" (?itos@Zap@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_K@Z) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl insertStatsGame(class Query *,struct Zap::GameStats const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?insertStatsGame@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVQuery@@PBUGameStats@Zap@@ABV12@@Z)
1>database.obj : error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Zap::itos(int)" (?itos@Zap@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl insertStatsGame(class Query *,struct Zap::GameStats const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?insertStatsGame@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVQuery@@PBUGameStats@Zap@@ABV12@@Z)
1>main.obj : error LNK2001: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Zap::itos(int)" (?itos@Zap@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z)
1>database.obj : error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Zap::replaceString(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 &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?replaceString@Zap@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV23@00@Z) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl sanitize(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?sanitize@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV12@@Z)
1>main.obj : error LNK2019: unresolved external symbol "void __cdecl Zap::processStatsResults(struct Zap::GameStats *)" (?processStatsResults@Zap@@YAXPAUGameStats@1@@Z) referenced in function "public: virtual void __thiscall MasterServerConnection::s2mSendStatistics_remote(struct Zap::VersionedGameStats)" (?s2mSendStatistics_remote@MasterServerConnection@@UAEXUVersionedGameStats@Zap@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall Authenticator::~Authenticator(void)" (??1Authenticator@@QAE@XZ) referenced in function "public: enum MasterServerConnection::PHPBB3AuthenticationStatus __thiscall MasterServerConnection::verifyCredentials(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> >)" (?verifyCredentials@MasterServerConnection@@QAE?AW4PHPBB3AuthenticationStatus@1@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V34@@Z)
1>main.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Authenticator::authenticate(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> >,int &)" (?authenticate@Authenticator@@QAE_NAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V23@AAH@Z) referenced in function "public: enum MasterServerConnection::PHPBB3AuthenticationStatus __thiscall MasterServerConnection::verifyCredentials(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> >)" (?verifyCredentials@MasterServerConnection@@QAE?AW4PHPBB3AuthenticationStatus@1@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V34@@Z)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Authenticator::initialize(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 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 std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int)" (?initialize@Authenticator@@QAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0000H@Z) referenced in function "public: enum MasterServerConnection::PHPBB3AuthenticationStatus __thiscall MasterServerConnection::verifyCredentials(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> >)" (?verifyCredentials@MasterServerConnection@@QAE?AW4PHPBB3AuthenticationStatus@1@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V34@@Z)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall Authenticator::Authenticator(void)" (??0Authenticator@@QAE@XZ) referenced in function "public: enum MasterServerConnection::PHPBB3AuthenticationStatus __thiscall MasterServerConnection::verifyCredentials(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> >)" (?verifyCredentials@MasterServerConnection@@QAE?AW4PHPBB3AuthenticationStatus@1@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V34@@Z)
1>main.obj : error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Zap::trim(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 &)" (?trim@Zap@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV23@0@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall MasterServerConnection::cleanName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?cleanName@MasterServerConnection@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V23@@Z)
1>masterInterface.obj : error LNK2019: unresolved external symbol "void __cdecl Types::read(class TNL::BitStream &,struct Zap::VersionedGameStats *)" (?read@Types@@YAXAAVBitStream@TNL@@PAUVersionedGameStats@Zap@@@Z) referenced in function "public: virtual void __thiscall TNL::FunctorDecl<void (__thiscall MasterServerInterface::*)(struct Zap::VersionedGameStats)>::read(class TNL::BitStream &)" (?read@?$FunctorDecl@P8MasterServerInterface@@AEXUVersionedGameStats@Zap@@@Z@TNL@@UAEXAAVBitStream@2@@Z)
1>masterInterface.obj : error LNK2019: unresolved external symbol "void __cdecl Types::write(class TNL::BitStream &,struct Zap::VersionedGameStats &)" (?write@Types@@YAXAAVBitStream@TNL@@AAUVersionedGameStats@Zap@@@Z) referenced in function "public: virtual void __thiscall TNL::FunctorDecl<void (__thiscall MasterServerInterface::*)(struct Zap::VersionedGameStats)>::write(class TNL::BitStream &)" (?write@?$FunctorDecl@P8MasterServerInterface@@AEXUVersionedGameStats@Zap@@@Z@TNL@@UAEXAAVBitStream@2@@Z)
1>..\exe\master_d.exe : fatal error LNK1120: 12 unresolved externals
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

Re: Getting a ton of linking errors when compiling

PostPosted: Fri Feb 25, 2011 6:51 pm
by ZoombeR
yeah, take a look at the very bottom. You're trying to compile the master. I'd say removing it from the project will fix that

Re: Getting a ton of linking errors when compiling

PostPosted: Fri Feb 25, 2011 11:25 pm
by bobdaduck
Didn't know I wasn't supposed to be.

That worked, thanks.

Re: Getting a ton of linking errors when compiling

PostPosted: Sat Feb 26, 2011 10:38 am
by Unknown
This problem should be on the wiki - it happened to me too.

Re: Getting a ton of linking errors when compiling

PostPosted: Sat Feb 26, 2011 11:25 am
by ZoombeR
ok, but maybe i can talk to watusimoto and just ask him to have the project initially start without building the master?

Re: Getting a ton of linking errors when compiling

PostPosted: Sat Feb 26, 2011 2:47 pm
by watusimoto
If you check out the latest and are using VC++ 10, I *think* the master will not try to compile.

Re: Getting a ton of linking errors when compiling

PostPosted: Sat Feb 26, 2011 3:43 pm
by bobdaduck
This was encountered two or three days ago... using VC++ 10. How latest is "using the latest"?

Re: Getting a ton of linking errors when compiling

PostPosted: Sat Feb 26, 2011 9:44 pm
by watusimoto
As of about 3 minutes before I posted.

Re: Getting a ton of linking errors when compiling

PostPosted: Fri Feb 01, 2013 5:59 pm
by amgine
oh good to know wondering why i was getting those compiler errors.

Re: Getting a ton of linking errors when compiling

PostPosted: Fri Feb 01, 2013 7:02 pm
by raptor
Closing topic, this was old and these errors don't apply anymore