FAQ  •  Register  •  Login

Getting a ton of linking errors when compiling

Forum rules
This forum is for technical discussion only. If you are interested in gameplay or client-side issues, please post in Bitfighter Features.
<<

bobdaduck

User avatar

Global Moderator

Posts: 790

Joined: Thu Mar 11, 2010 1:39 pm

Location: Utah

Post Thu Feb 24, 2011 8:40 pm

Getting a ton of linking errors when compiling

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 ==========
Little_Apple wrote:DnD: the REAL bitfighter levelgen documentation

Santiago ZAP wrote:bob doesn't make new maps, he makes new gamemodes
<<

ZoombeR

Posts: 1036

Joined: Fri Jun 04, 2010 11:56 pm

Post Fri Feb 25, 2011 6:51 pm

Re: Getting a ton of linking errors when compiling

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
<<

bobdaduck

User avatar

Global Moderator

Posts: 790

Joined: Thu Mar 11, 2010 1:39 pm

Location: Utah

Post Fri Feb 25, 2011 11:25 pm

Re: Getting a ton of linking errors when compiling

Didn't know I wasn't supposed to be.

That worked, thanks.
Little_Apple wrote:DnD: the REAL bitfighter levelgen documentation

Santiago ZAP wrote:bob doesn't make new maps, he makes new gamemodes
<<

Unknown

User avatar

Posts: 183

Joined: Mon Mar 08, 2010 4:48 pm

Post Sat Feb 26, 2011 10:38 am

Re: Getting a ton of linking errors when compiling

This problem should be on the wiki - it happened to me too.
<<

ZoombeR

Posts: 1036

Joined: Fri Jun 04, 2010 11:56 pm

Post Sat Feb 26, 2011 11:25 am

Re: Getting a ton of linking errors when compiling

ok, but maybe i can talk to watusimoto and just ask him to have the project initially start without building the master?
<<

watusimoto

Site Admin

Posts: 1558

Joined: Tue Feb 23, 2010 7:07 pm

Location: Quartz's mom's house

Post Sat Feb 26, 2011 2:47 pm

Re: Getting a ton of linking errors when compiling

If you check out the latest and are using VC++ 10, I *think* the master will not try to compile.
<<

bobdaduck

User avatar

Global Moderator

Posts: 790

Joined: Thu Mar 11, 2010 1:39 pm

Location: Utah

Post Sat Feb 26, 2011 3:43 pm

Re: Getting a ton of linking errors when compiling

This was encountered two or three days ago... using VC++ 10. How latest is "using the latest"?
Little_Apple wrote:DnD: the REAL bitfighter levelgen documentation

Santiago ZAP wrote:bob doesn't make new maps, he makes new gamemodes
<<

watusimoto

Site Admin

Posts: 1558

Joined: Tue Feb 23, 2010 7:07 pm

Location: Quartz's mom's house

Post Sat Feb 26, 2011 9:44 pm

Re: Getting a ton of linking errors when compiling

As of about 3 minutes before I posted.
<<

amgine

Posts: 1399

Joined: Thu Apr 19, 2012 2:57 pm

Post Fri Feb 01, 2013 5:59 pm

Re: Getting a ton of linking errors when compiling

oh good to know wondering why i was getting those compiler errors.
Bitfighter Forever.
<<

raptor

Posts: 1046

Joined: Mon Oct 11, 2010 9:03 pm

Post Fri Feb 01, 2013 7:02 pm

Re: Getting a ton of linking errors when compiling

Closing topic, this was old and these errors don't apply anymore

Return to Technical Discussion

Who is online

Users browsing this forum: Google [Bot] and 4 guests