Log in

View Full Version : VS.NET 2003 Compile Error


BobThompson
08-01-2006, 11:08 PM
I've read through the wikki and every post I can find trying to get Zone to compile, but haven't found anything that seems to help.

I'm getting the following errors. Can anyone lend a hand and help me get this working?


Linking...
command.obj : error LNK2019: unresolved external symbol "public: bool __thiscall RuleManager::ListRules(char const *,class std::vector<char const *,class std::allocator<char const *> > &)" (?ListRules@RuleManager@@QAE_NPBDAAV?$vector@PBDV? $allocator@PBD@std@@@std@@@Z) referenced in function "void __cdecl command_rules(class Client *,class Seperator const *)" (?command_rules@@YAXPAVClient@@PBVSeperator@@@Z)
command.obj : error LNK2019: unresolved external symbol "public: bool __thiscall RuleManager::ListCategories(class std::vector<char const *,class std::allocator<char const *> > &)" (?ListCategories@RuleManager@@QAE_NAAV?$vector@PBD V?$allocator@PBD@std@@@std@@@Z) referenced in function "void __cdecl command_rules(class Client *,class Seperator const *)" (?command_rules@@YAXPAVClient@@PBVSeperator@@@Z)
command.obj : error LNK2019: unresolved external symbol "public: bool __thiscall RuleManager::SetRule(char const *,char const *,class Database *,bool)" (?SetRule@RuleManager@@QAE_NPBD0PAVDatabase@@_N@Z) referenced in function "void __cdecl command_rules(class Client *,class Seperator const *)" (?command_rules@@YAXPAVClient@@PBVSeperator@@@Z)
command.obj : error LNK2019: unresolved external symbol "public: void __thiscall RuleManager::ResetRules(void)" (?ResetRules@RuleManager@@QAEXXZ) referenced in function "void __cdecl command_rules(class Client *,class Seperator const *)" (?command_rules@@YAXPAVClient@@PBVSeperator@@@Z)
command.obj : error LNK2019: unresolved external symbol "public: void __thiscall RuleManager::SaveRules(class Database *,char const *)" (?SaveRules@RuleManager@@QAEXPAVDatabase@@PBD@Z) referenced in function "void __cdecl command_rules(class Client *,class Seperator const *)" (?command_rules@@YAXPAVClient@@PBVSeperator@@@Z)
command.obj : error LNK2019: unresolved external symbol "public: static int __cdecl RuleManager::GetRulesetID(class Database *,char const *)" (?GetRulesetID@RuleManager@@SAHPAVDatabase@@PBD@Z) referenced in function "void __cdecl command_rules(class Client *,class Seperator const *)" (?command_rules@@YAXPAVClient@@PBVSeperator@@@Z)
command.obj : error LNK2019: unresolved external symbol "public: bool __thiscall RuleManager::LoadRules(class Database *,char const *)" (?LoadRules@RuleManager@@QAE_NPAVDatabase@@PBD@Z) referenced in function "void __cdecl command_rules(class Client *,class Seperator const *)" (?command_rules@@YAXPAVClient@@PBVSeperator@@@Z)
net.obj : error LNK2001: unresolved external symbol "public: bool __thiscall RuleManager::LoadRules(class Database *,char const *)" (?LoadRules@RuleManager@@QAE_NPAVDatabase@@PBD@Z)
command.obj : error LNK2019: unresolved external symbol "public: static bool __cdecl RuleManager::ListRulesets(class Database *,class std::map<int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<int>,class std::allocator<struct std::pair<int const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > &)" (?ListRulesets@RuleManager@@SA_NPAVDatabase@@AAV?$ map@HV?$basic_string@DU?$char_traits@D@std@@V?$all ocator@D@2@@std@@U?$less@H@2@V?$allocator@U?$pair@ $$CBHV?$basic_string@DU?$char_traits@D@std@@V?$all ocator@D@2@@std@@@std@@@2@@std@@@Z) referenced in function "void __cdecl command_rules(class Client *,class Seperator const *)" (?command_rules@@YAXPAVClient@@PBVSeperator@@@Z)
net.obj : error LNK2019: unresolved external symbol "public: __thiscall RuleManager::RuleManager(void)" (??0RuleManager@@QAE@XZ) referenced in function _$E19
.\../Build/Zone.exe : fatal error LNK1120: 9 unresolved externals


Thanks in advance for any help you can provide.

LostZaphod
08-02-2006, 02:09 AM
Close solution
CHANGE this inside of zone.vcproj (do a search for "perl_playerCorpse.cpp" carrage returns and spaces have been removed)
<File RelativePath=".\perl_PlayerCorpse.cpp"></File>

to look like this in zone.proj (needed for quests to work)
<File RelativePath=".\perl_perlpacket.cpp"></File>
<File RelativePath=".\perl_PlayerCorpse.cpp"></File>
<File RelativePath=".\perlpacket.cpp"></File>

ADD to the "Common Source Files"
<File RelativePath="..\common\rulesys.cpp"> </File>

Open solution, properties of zone
if you want better debugging set
c++.preprocessor, change EQDEBUG=0 to EQDEBUG=5
for quests to work add
c++,preprocessor, add these items.... ,EMBPERL,EMBPERL_PLUGIN

linker, Input, "Ignore Specific Library"
LIBCMT,LIBC,MSVCRT

BobThompson
08-02-2006, 04:03 PM
Finally something that worked! Thanks for the assistance with this.