thepoetwarrior
04-01-2012, 11:54 AM
Created a Windows 7 32-bit VM for a test server test edits without having to reboot live server.
After compiling source, I'm getting 4 succeeded 2 failed.
Used Visual C++ 2008 Express on Windows 7 32-bit, Perl 5.1 version 1007 (same version on guide), and MySQL 5.1.62 (different version from guide). The include and library are set up properly.
The 4 files succeed obviously are zone.exe, world.exe, eqlaunch.exe, and EMuShareMem.dll.
I think what failed might have been chatserver.exe and some other file, but I already have a back up of a working chatserver.exe file compiled from before.
Used the guide from here "COMPLETE PUBLIC SERVER SETUP - Jan-2011":
http://www.eqemulator.org/forums/showthread.php?t=32980
Why are there 2 failed to compile?
Here is the output:
Output Window
Compiling...
ucsconfig.cpp
ucs.cpp
clientlist.cpp
.\clientlist.cpp(1012) : warning C4018: '<' : signed/unsigned mismatch
.\clientlist.cpp(1314) : warning C4018: '<' : signed/unsigned mismatch
.\clientlist.cpp(1317) : warning C4018: '<' : signed/unsigned mismatch
.\clientlist.cpp(1427) : warning C4018: '<' : signed/unsigned mismatch
.\clientlist.cpp(1430) : warning C4018: '<' : signed/unsigned mismatch
chatchannel.cpp
Linking...
chatchannel.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::SetChannelOwner(class std::basic_string,class std::allocator >,class std::basic_string,class std::allocator >)" (?SetChannelOwner@Database@@QAEXV?$basic_string@DU ?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z)
chatchannel.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::SetChannelPassword(class std::basic_string,class std::allocator >,class std::basic_string,class std::allocator >)" (?SetChannelPassword@Database@@QAEXV?$basic_string @DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z )
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::GetFriendsAndIgnore(int,class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > &,class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > &)" (?GetFriendsAndIgnore@Database@@QAEXHAAV?$vector@V ?$basic_string@DU?$char_traits@D@std@@V?$allocator @D@2@@std@@V?$allocator@V?$basic_string@DU?$char_t raits@D@std@@V?$allocator@D@2@@std@@@2@@std@@0@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::RemoveFriendOrIgnore(int,int,class std::basic_string,class std::allocator >)" (?RemoveFriendOrIgnore@Database@@QAEXHHV?$basic_st ring@DU?$char_traits@D@std@@V?$allocator@D@2@@std@ @@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::AddFriendOrIgnore(int,int,class std::basic_string,class std::allocator >)" (?AddFriendOrIgnore@Database@@QAEXHHV?$basic_strin g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z )
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::SetMessageStatus(int,int)" (?SetMessageStatus@Database@@QAEXHH@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Database::SendMail(class std::basic_string,class std::allocator >,class std::basic_string,class std::allocator >,class std::basic_string,class std::allocator >,class std::basic_string,class std::allocator >,class std::basic_string,class std::allocator >)" (?SendMail@Database@@QAE_NV?$basic_string@DU?$char _traits@D@std@@V?$allocator@D@2@@std@@0000@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::SendBody(class Client *,int)" (?SendBody@Database@@QAEXPAVClient@@H@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::SendHeaders(class Client *)" (?SendHeaders@Database@@QAEXPAVClient@@@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::GetAccountStatus(class Client *)" (?GetAccountStatus@Database@@QAEXPAVClient@@@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Database::VerifyMailKey(class std::basic_string,class std::allocator >,int,class std::basic_string,class std::allocator >)" (?VerifyMailKey@Database@@QAE_NV?$basic_string@DU? $char_traits@D@std@@V?$allocator@D@2@@std@@H0@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: int __thiscall Database::FindCharacter(char const *)" (?FindCharacter@Database@@QAEHPBD@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: int __thiscall Database::FindAccount(char const *,class Client *)" (?FindAccount@Database@@QAEHPBDPAVClient@@@Z)
ucs.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::ExpireMail(void)" (?ExpireMail@Database@@QAEXXZ)
ucs.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Database::LoadChatChannels(void)" (?LoadChatChannels@Database@@QAE_NXZ)
worldserver.obj : error LNK2001: unresolved external symbol "class queryservconfig const * const Config" (?Config@@3PBVqueryservconfig@@B)
.\../Build/Chatserver.exe : fatal error LNK1120: 16 unresolved externals
Results
Build log was saved at "file://c:\Source\EQEmuServer\Build\ucs\Release\BuildLog.h tm"
ucs - 17 error(s), 5 warning(s)
After compiling source, I'm getting 4 succeeded 2 failed.
Used Visual C++ 2008 Express on Windows 7 32-bit, Perl 5.1 version 1007 (same version on guide), and MySQL 5.1.62 (different version from guide). The include and library are set up properly.
The 4 files succeed obviously are zone.exe, world.exe, eqlaunch.exe, and EMuShareMem.dll.
I think what failed might have been chatserver.exe and some other file, but I already have a back up of a working chatserver.exe file compiled from before.
Used the guide from here "COMPLETE PUBLIC SERVER SETUP - Jan-2011":
http://www.eqemulator.org/forums/showthread.php?t=32980
Why are there 2 failed to compile?
Here is the output:
Output Window
Compiling...
ucsconfig.cpp
ucs.cpp
clientlist.cpp
.\clientlist.cpp(1012) : warning C4018: '<' : signed/unsigned mismatch
.\clientlist.cpp(1314) : warning C4018: '<' : signed/unsigned mismatch
.\clientlist.cpp(1317) : warning C4018: '<' : signed/unsigned mismatch
.\clientlist.cpp(1427) : warning C4018: '<' : signed/unsigned mismatch
.\clientlist.cpp(1430) : warning C4018: '<' : signed/unsigned mismatch
chatchannel.cpp
Linking...
chatchannel.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::SetChannelOwner(class std::basic_string,class std::allocator >,class std::basic_string,class std::allocator >)" (?SetChannelOwner@Database@@QAEXV?$basic_string@DU ?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z)
chatchannel.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::SetChannelPassword(class std::basic_string,class std::allocator >,class std::basic_string,class std::allocator >)" (?SetChannelPassword@Database@@QAEXV?$basic_string @DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z )
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::GetFriendsAndIgnore(int,class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > &,class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > &)" (?GetFriendsAndIgnore@Database@@QAEXHAAV?$vector@V ?$basic_string@DU?$char_traits@D@std@@V?$allocator @D@2@@std@@V?$allocator@V?$basic_string@DU?$char_t raits@D@std@@V?$allocator@D@2@@std@@@2@@std@@0@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::RemoveFriendOrIgnore(int,int,class std::basic_string,class std::allocator >)" (?RemoveFriendOrIgnore@Database@@QAEXHHV?$basic_st ring@DU?$char_traits@D@std@@V?$allocator@D@2@@std@ @@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::AddFriendOrIgnore(int,int,class std::basic_string,class std::allocator >)" (?AddFriendOrIgnore@Database@@QAEXHHV?$basic_strin g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z )
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::SetMessageStatus(int,int)" (?SetMessageStatus@Database@@QAEXHH@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Database::SendMail(class std::basic_string,class std::allocator >,class std::basic_string,class std::allocator >,class std::basic_string,class std::allocator >,class std::basic_string,class std::allocator >,class std::basic_string,class std::allocator >)" (?SendMail@Database@@QAE_NV?$basic_string@DU?$char _traits@D@std@@V?$allocator@D@2@@std@@0000@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::SendBody(class Client *,int)" (?SendBody@Database@@QAEXPAVClient@@H@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::SendHeaders(class Client *)" (?SendHeaders@Database@@QAEXPAVClient@@@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::GetAccountStatus(class Client *)" (?GetAccountStatus@Database@@QAEXPAVClient@@@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Database::VerifyMailKey(class std::basic_string,class std::allocator >,int,class std::basic_string,class std::allocator >)" (?VerifyMailKey@Database@@QAE_NV?$basic_string@DU? $char_traits@D@std@@V?$allocator@D@2@@std@@H0@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: int __thiscall Database::FindCharacter(char const *)" (?FindCharacter@Database@@QAEHPBD@Z)
clientlist.obj : error LNK2001: unresolved external symbol "public: int __thiscall Database::FindAccount(char const *,class Client *)" (?FindAccount@Database@@QAEHPBDPAVClient@@@Z)
ucs.obj : error LNK2001: unresolved external symbol "public: void __thiscall Database::ExpireMail(void)" (?ExpireMail@Database@@QAEXXZ)
ucs.obj : error LNK2001: unresolved external symbol "public: bool __thiscall Database::LoadChatChannels(void)" (?LoadChatChannels@Database@@QAE_NXZ)
worldserver.obj : error LNK2001: unresolved external symbol "class queryservconfig const * const Config" (?Config@@3PBVqueryservconfig@@B)
.\../Build/Chatserver.exe : fatal error LNK1120: 16 unresolved externals
Results
Build log was saved at "file://c:\Source\EQEmuServer\Build\ucs\Release\BuildLog.h tm"
ucs - 17 error(s), 5 warning(s)