Log in

View Full Version : Compiling Errors on world.exe


cybernine186
10-12-2008, 01:30 AM
I am having trouble compiling the world.exe, below is the error log. If anyone knows anything please let me know.. Thanks


3>Linking...
3>shareddb.obj : error LNK2001: unresolved external symbol _mysql_free_result@4
3>dbasync.obj : error LNK2001: unresolved external symbol _mysql_free_result@4
3>guild_base.obj : error LNK2001: unresolved external symbol _mysql_free_result@4
3>perl_EQDBRes.obj : error LNK2001: unresolved external symbol _mysql_free_result@4
3>rulesys.obj : error LNK2001: unresolved external symbol _mysql_free_result@4
3>EQLConfig.obj : error LNK2019: unresolved external symbol _mysql_free_result@4 referenced in function "public: void __thiscall EQLConfig::LoadSettings(void)" (?LoadSettings@EQLConfig@@QAEXXZ)
3>worlddb.obj : error LNK2001: unresolved external symbol _mysql_free_result@4
3>zoneserver.obj : error LNK2001: unresolved external symbol _mysql_free_result@4
3>database.obj : error LNK2001: unresolved external symbol _mysql_free_result@4
3>guild_base.obj : error LNK2001: unresolved external symbol _mysql_fetch_row@4
3>rulesys.obj : error LNK2001: unresolved external symbol _mysql_fetch_row@4
3>shareddb.obj : error LNK2001: unresolved external symbol _mysql_fetch_row@4
3>EQLConfig.obj : error LNK2019: unresolved external symbol _mysql_fetch_row@4 referenced in function "public: void __thiscall EQLConfig::LoadSettings(void)" (?LoadSettings@EQLConfig@@QAEXXZ)
3>worlddb.obj : error LNK2001: unresolved external symbol _mysql_fetch_row@4
3>database.obj : error LNK2001: unresolved external symbol _mysql_fetch_row@4
3>EQDBRes.obj : error LNK2001: unresolved external symbol _mysql_fetch_row@4
3>shareddb.obj : error LNK2001: unresolved external symbol _mysql_num_rows@4
3>worlddb.obj : error LNK2019: unresolved external symbol _mysql_num_rows@4 referenced in function "public: bool __thiscall WorldDatabase::GetStartZone(struct PlayerProfile_Struct *,struct CharCreate_Struct *)" (?GetStartZone@WorldDatabase@@QAE_NPAUPlayerProfil e_Struct@@PAUCharCreate_Struct@@@Z)
3>database.obj : error LNK2001: unresolved external symbol _mysql_num_rows@4
3>guild_base.obj : error LNK2001: unresolved external symbol _mysql_num_rows@4
3>perl_EQDBRes.obj : error LNK2001: unresolved external symbol _mysql_num_rows@4
3>worlddb.obj : error LNK2019: unresolved external symbol _mysql_fetch_lengths@4 referenced in function "public: void __thiscall WorldDatabase::GetCharSelectInfo(unsigned int,struct CharacterSelect_Struct *)" (?GetCharSelectInfo@WorldDatabase@@QAEXIPAUCharact erSelect_Struct@@@Z)
3>database.obj : error LNK2001: unresolved external symbol _mysql_fetch_lengths@4
3>perl_EQDBRes.obj : error LNK2001: unresolved external symbol _mysql_fetch_lengths@4
3>shareddb.obj : error LNK2001: unresolved external symbol _mysql_fetch_lengths@4
3>database.obj : error LNK2019: unresolved external symbol _mysql_fetch_fields@4 referenced in function "bool __cdecl FetchRowMap(struct st_mysql_res *,class std::map<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> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<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> > > > > &)" (?FetchRowMap@@YA_NPAUst_mysql_res@@AAV?$map@V?$ba sic_string@DU?$char_traits@D@std@@V?$allocator@D@2 @@std@@V12@U?$less@V?$basic_string@DU?$char_traits @D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$ pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V? $allocator@D@2@@std@@V12@@std@@@2@@std@@@Z)
3>EQDBRes.obj : error LNK2001: unresolved external symbol _mysql_fetch_fields@4
3>database.obj : error LNK2019: unresolved external symbol _mysql_num_fields@4 referenced in function "bool __cdecl FetchRowMap(struct st_mysql_res *,class std::map<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> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<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> > > > > &)" (?FetchRowMap@@YA_NPAUst_mysql_res@@AAV?$map@V?$ba sic_string@DU?$char_traits@D@std@@V?$allocator@D@2 @@std@@V12@U?$less@V?$basic_string@DU?$char_traits @D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$ pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V? $allocator@D@2@@std@@V12@@std@@@2@@std@@@Z)
3>EQDBRes.obj : error LNK2001: unresolved external symbol _mysql_num_fields@4
3>perl_EQDBRes.obj : error LNK2001: unresolved external symbol _mysql_num_fields@4
3>dbcore.obj : error LNK2019: unresolved external symbol _mysql_init@4 referenced in function "public: __thiscall DBcore::DBcore(void)" (??0DBcore@@QAE@XZ)
3>dbcore.obj : error LNK2019: unresolved external symbol _mysql_close@4 referenced in function "public: __thiscall DBcore::~DBcore(void)" (??1DBcore@@QAE@XZ)
3>dbcore.obj : error LNK2019: unresolved external symbol _mysql_ping@4 referenced in function "public: void __thiscall DBcore::ping(void)" (?ping@DBcore@@QAEXXZ)
3>dbcore.obj : error LNK2019: unresolved external symbol _mysql_real_escape_string@16 referenced in function "public: unsigned int __thiscall DBcore::DoEscapeString(char *,char const *,unsigned int)" (?DoEscapeString@DBcore@@QAEIPADPBDI@Z)
3>EQDB.obj : error LNK2001: unresolved external symbol _mysql_real_escape_string@16
3>dbcore.obj : error LNK2019: unresolved external symbol _mysql_error@4 referenced in function "private: bool __thiscall DBcore::Open(unsigned int *,char *)" (?Open@DBcore@@AAE_NPAIPAD@Z)
3>EQDB.obj : error LNK2001: unresolved external symbol _mysql_error@4
3>dbcore.obj : error LNK2019: unresolved external symbol _mysql_errno@4 referenced in function "private: bool __thiscall DBcore::Open(unsigned int *,char *)" (?Open@DBcore@@AAE_NPAIPAD@Z)
3>EQDB.obj : error LNK2001: unresolved external symbol _mysql_errno@4
3>dbcore.obj : error LNK2019: unresolved external symbol _mysql_real_connect@32 referenced in function "private: bool __thiscall DBcore::Open(unsigned int *,char *)" (?Open@DBcore@@AAE_NPAIPAD@Z)
3>dbcore.obj : error LNK2019: unresolved external symbol _mysql_insert_id@4 referenced in function "public: bool __thiscall DBcore::RunQuery(char const *,unsigned int,char *,struct st_mysql_res * *,unsigned int *,unsigned int *,unsigned int *,bool)" (?RunQuery@DBcore@@QAE_NPBDIPADPAPAUst_mysql_res@@ PAI33_N@Z)
3>EQDB.obj : error LNK2001: unresolved external symbol _mysql_insert_id@4
3>dbcore.obj : error LNK2019: unresolved external symbol _mysql_affected_rows@4 referenced in function "public: bool __thiscall DBcore::RunQuery(char const *,unsigned int,char *,struct st_mysql_res * *,unsigned int *,unsigned int *,unsigned int *,bool)" (?RunQuery@DBcore@@QAE_NPBDIPADPAPAUst_mysql_res@@ PAI33_N@Z)
3>EQDB.obj : error LNK2001: unresolved external symbol _mysql_affected_rows@4
3>dbcore.obj : error LNK2019: unresolved external symbol _mysql_store_result@4 referenced in function "public: bool __thiscall DBcore::RunQuery(char const *,unsigned int,char *,struct st_mysql_res * *,unsigned int *,unsigned int *,unsigned int *,bool)" (?RunQuery@DBcore@@QAE_NPBDIPADPAPAUst_mysql_res@@ PAI33_N@Z)
3>EQDB.obj : error LNK2001: unresolved external symbol _mysql_store_result@4
3>dbcore.obj : error LNK2019: unresolved external symbol _mysql_field_count@4 referenced in function "public: bool __thiscall DBcore::RunQuery(char const *,unsigned int,char *,struct st_mysql_res * *,unsigned int *,unsigned int *,unsigned int *,bool)" (?RunQuery@DBcore@@QAE_NPBDIPADPAPAUst_mysql_res@@ PAI33_N@Z)
3>EQDB.obj : error LNK2001: unresolved external symbol _mysql_field_count@4
3>dbcore.obj : error LNK2019: unresolved external symbol _mysql_real_query@12 referenced in function "public: bool __thiscall DBcore::RunQuery(char const *,unsigned int,char *,struct st_mysql_res * *,unsigned int *,unsigned int *,unsigned int *,bool)" (?RunQuery@DBcore@@QAE_NPBDIPADPAPAUst_mysql_res@@ PAI33_N@Z)
3>EQDB.obj : error LNK2001: unresolved external symbol _mysql_real_query@12
3>packet_functions.obj : error LNK2019: unresolved external symbol _deflateEnd referenced in function "int __cdecl DeflatePacket(unsigned char const *,int,unsigned char *,int)" (?DeflatePacket@@YAHPBEHPAEH@Z)
3>packet_functions.obj : error LNK2019: unresolved external symbol _deflate referenced in function "int __cdecl DeflatePacket(unsigned char const *,int,unsigned char *,int)" (?DeflatePacket@@YAHPBEHPAEH@Z)
3>packet_functions.obj : error LNK2019: unresolved external symbol _deflateInit_ referenced in function "int __cdecl DeflatePacket(unsigned char const *,int,unsigned char *,int)" (?DeflatePacket@@YAHPBEHPAEH@Z)
3>packet_functions.obj : error LNK2019: unresolved external symbol _inflateEnd referenced in function "unsigned int __cdecl InflatePacket(unsigned char const *,unsigned int,unsigned char *,unsigned int,bool)" (?InflatePacket@@YAIPBEIPAEI_N@Z)
3>packet_functions.obj : error LNK2019: unresolved external symbol _inflate referenced in function "unsigned int __cdecl InflatePacket(unsigned char const *,unsigned int,unsigned char *,unsigned int,bool)" (?InflatePacket@@YAIPBEIPAEI_N@Z)
3>packet_functions.obj : error LNK2019: unresolved external symbol _inflateInit2_ referenced in function "unsigned int __cdecl InflatePacket(unsigned char const *,unsigned int,unsigned char *,unsigned int,bool)" (?InflatePacket@@YAIPBEIPAEI_N@Z)
3>.\../build/World.exe : fatal error LNK1120: 24 unresolved externals
3>Creating browse information file...
3>Microsoft Browse Information Maintenance Utility Version 8.00.50727
3>Copyright (C) Microsoft Corporation. All rights reserved.
3>Build log was saved at "file://d:\EQEmu-0.7.0-1129\Build\World\Release\BuildLog.htm"
3>World - 57 error(s), 2 warning(s)
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========

warhawk
12-11-2008, 07:59 PM
Hi

Although this is a bit late. I hope this may help someone with the same issue.

VC++ 2008 express is not compatible with 64 bit version of mysql. Install the 32 bit MYSQL and it will compile ok.

War

ub3r
01-14-2010, 09:55 PM
helped me, thanks. thats exactly my problem.