Jump to content

Recommended Posts

Posted

Thought I would start a new thread rather than clog up the Playerbot one..

Here is the compiler error that I get with Playerbot added..

I cloned a fresh copy of mangos

I merged a copy of AHBot

compiled the above and ran without an issue

I then merged with Playerbot and received this in the compiler..

11>     Creating library .\\mangosd__Win32_Release\\mangosd.lib and object .\\mangosd__Win32_Release\\mangosd.exp
11>game.lib(Group.obj) : error LNK2019: unresolved external symbol "public: virtual __thiscall PlayerbotMgr::~PlayerbotMgr(void)" (??1PlayerbotMgr@@UAE@XZ) referenced in function "public: virtual void * __thiscall PlayerbotMgr::`scalar deleting destructor'(unsigned int)" (??_GPlayerbotMgr@@UAEPAXI@Z)
11>game.lib(Player.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall PlayerbotMgr::~PlayerbotMgr(void)" (??1PlayerbotMgr@@UAE@XZ)
11>game.lib(WorldSession.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall PlayerbotMgr::~PlayerbotMgr(void)" (??1PlayerbotMgr@@UAE@XZ)
11>game.lib(CharacterHandler.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall PlayerbotMgr::~PlayerbotMgr(void)" (??1PlayerbotMgr@@UAE@XZ)
11>game.lib(Group.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotMgr::RemoveAllBotsFromGroup(void)" (?RemoveAllBotsFromGroup@PlayerbotMgr@@QAEXXZ) referenced in function "public: unsigned int __thiscall Group::RemoveMember(unsigned __int64 const &,unsigned char const &)" (?RemoveMember@Group@@QAEIAB_KABE@Z)
11>game.lib(Player.obj) : error LNK2019: unresolved external symbol "public: virtual __thiscall PlayerbotAI::~PlayerbotAI(void)" (??1PlayerbotAI@@UAE@XZ) referenced in function "public: virtual void * __thiscall PlayerbotAI::`scalar deleting destructor'(unsigned int)" (??_GPlayerbotAI@@UAEPAXI@Z)
11>game.lib(WorldSession.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall PlayerbotAI::~PlayerbotAI(void)" (??1PlayerbotAI@@UAE@XZ)
11>game.lib(ChatHandler.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall PlayerbotAI::~PlayerbotAI(void)" (??1PlayerbotAI@@UAE@XZ)
11>game.lib(QuestHandler.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall PlayerbotAI::~PlayerbotAI(void)" (??1PlayerbotAI@@UAE@XZ)
11>game.lib(Player.obj) : error LNK2019: unresolved external symbol "public: void __thiscall Creature::LoadBotMenu(class Player *)" (?LoadBotMenu@Creature@@QAEXPAVPlayer@@@Z) referenced in function "public: void __thiscall Player::PrepareGossipMenu(class WorldObject *,unsigned int)" (?PrepareGossipMenu@Player@@QAEXPAVWorldObject@@I@Z)
11>game.lib(Player.obj) : error LNK2019: unresolved external symbol "public: bool __thiscall Player::requiredQuests(char const *)" (?requiredQuests@Player@@QAE_NPBD@Z) referenced in function "public: void __thiscall Player::PrepareGossipMenu(class WorldObject *,unsigned int)" (?PrepareGossipMenu@Player@@QAEXPAVWorldObject@@I@Z)
11>game.lib(Player.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotMgr::LogoutPlayerBot(unsigned __int64)" (?LogoutPlayerBot@PlayerbotMgr@@QAEX_K@Z) referenced in function "public: void __thiscall Player::OnGossipSelect(class WorldObject *,unsigned int,unsigned int)" (?OnGossipSelect@Player@@QAEXPAVWorldObject@@II@Z)
11>game.lib(Player.obj) : error LNK2019: unresolved external symbol "public: class Player * __thiscall PlayerbotMgr::GetPlayerBot(unsigned __int64)const " (?GetPlayerBot@PlayerbotMgr@@QBEPAVPlayer@@_K@Z) referenced in function "public: void __thiscall Player::OnGossipSelect(class WorldObject *,unsigned int,unsigned int)" (?OnGossipSelect@Player@@QAEXPAVWorldObject@@II@Z)
11>game.lib(Player.obj) : error LNK2019: unresolved external symbol "public: __thiscall PlayerbotMgr::PlayerbotMgr(class Player * const)" (??0PlayerbotMgr@@QAE@QAVPlayer@@@Z) referenced in function "public: void __thiscall Player::OnGossipSelect(class WorldObject *,unsigned int,unsigned int)" (?OnGossipSelect@Player@@QAEXPAVWorldObject@@II@Z)
11>game.lib(Player.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotMgr::Stay(void)" (?Stay@PlayerbotMgr@@QAEXXZ) referenced in function "public: bool __thiscall Player::TeleportTo(unsigned int,float,float,float,float,unsigned int)" (?TeleportTo@Player@@QAE_NIMMMMI@Z)
11>game.lib(Player.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotMgr::UpdateAI(unsigned int)" (?UpdateAI@PlayerbotMgr@@QAEXI@Z) referenced in function "public: virtual void __thiscall Player::Update(unsigned int)" (?Update@Player@@UAEXI@Z)
11>game.lib(Player.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotAI::UpdateAI(unsigned int)" (?UpdateAI@PlayerbotAI@@QAEXI@Z) referenced in function "public: virtual void __thiscall Player::Update(unsigned int)" (?Update@Player@@UAEXI@Z)
11>game.lib(Chat.obj) : error LNK2019: unresolved external symbol "protected: bool __thiscall ChatHandler::HandlePlayerbotCommand(char const *)" (?HandlePlayerbotCommand@ChatHandler@@IAE_NPBD@Z) referenced in function "protected: class ChatCommand * __thiscall ChatHandler::getCommandTable(void)" (?getCommandTable@ChatHandler@@IAEPAVChatCommand@@XZ)
11>game.lib(WorldSession.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotMgr::HandleMasterOutgoingPacket(class WorldPacket const &)" (?HandleMasterOutgoingPacket@PlayerbotMgr@@QAEXABVWorldPacket@@@Z) referenced in function "public: void __thiscall WorldSession::SendPacket(class WorldPacket const *)" (?SendPacket@WorldSession@@QAEXPBVWorldPacket@@@Z)
11>game.lib(WorldSession.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotAI::HandleBotOutgoingPacket(class WorldPacket const &)" (?HandleBotOutgoingPacket@PlayerbotAI@@QAEXABVWorldPacket@@@Z) referenced in function "public: void __thiscall WorldSession::SendPacket(class WorldPacket const *)" (?SendPacket@WorldSession@@QAEXPBVWorldPacket@@@Z)
11>game.lib(WorldSession.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotMgr::LogoutAllBots(void)" (?LogoutAllBots@PlayerbotMgr@@QAEXXZ) referenced in function "public: void __thiscall WorldSession::LogoutPlayer(bool)" (?LogoutPlayer@WorldSession@@QAEX_N@Z)
11>game.lib(WorldSession.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotAI::HandleTeleportAck(void)" (?HandleTeleportAck@PlayerbotAI@@QAEXXZ) referenced in function __catch$?Update@WorldSession@@QAE_NI@Z$0
11>game.lib(WorldSession.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotMgr::HandleMasterIncomingPacket(class WorldPacket const &)" (?HandleMasterIncomingPacket@PlayerbotMgr@@QAEXABVWorldPacket@@@Z) referenced in function "public: bool __thiscall WorldSession::Update(unsigned int)" (?Update@WorldSession@@QAE_NI@Z)
11>game.lib(CharacterHandler.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotMgr::OnBotLogin(class Player * const)" (?OnBotLogin@PlayerbotMgr@@QAEXQAVPlayer@@@Z) referenced in function "public: void __thiscall CharacterHandler::HandlePlayerBotLoginCallback(class QueryResult *,class SqlQueryHolder *)" (?HandlePlayerBotLoginCallback@CharacterHandler@@QAEXPAVQueryResult@@PAVSqlQueryHolder@@@Z)
11>game.lib(ChatHandler.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotAI::HandleCommand(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class Player &)" (?HandleCommand@PlayerbotAI@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAVPlayer@@@Z) referenced in function "public: void __thiscall WorldSession::HandleMessagechatOpcode(class WorldPacket &)" (?HandleMessagechatOpcode@WorldSession@@QAEXAAVWorldPacket@@@Z)
11>game.lib(QuestHandler.obj) : error LNK2019: unresolved external symbol "public: void __thiscall PlayerbotAI::AcceptQuest(class Quest const *,class Player *)" (?AcceptQuest@PlayerbotAI@@QAEXPBVQuest@@PAVPlayer@@@Z) referenced in function "public: void __thiscall WorldSession::HandlePushQuestToParty(class WorldPacket &)" (?HandlePushQuestToParty@WorldSession@@QAEXAAVWorldPacket@@@Z)
11>..\\..\\bin\\Win32_Release\\mangosd.exe : fatal error LNK1120: 20 unresolved externals

Im afraid im not a big coder and could not make head nor tales of what it was trying to tell me..

any help would be appreciated. Thanks.

Posted

you can fix with this diff!

diff --git a/win/VC100/game.vcxproj b/win/VC100/game.vcxproj
index 44858d5..7da58d2 100644
--- a/win/VC100/game.vcxproj
+++ b/win/VC100/game.vcxproj
@@ -455,6 +455,19 @@
    <ClCompile Include="..\\..\\src\\game\\PetHandler.cpp" />
    <ClCompile Include="..\\..\\src\\game\\PetitionsHandler.cpp" />
    <ClCompile Include="..\\..\\src\\game\\Player.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotAI.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotClassAI.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotDeathKnightAI.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotDruidAI.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotHunterAI.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotMageAI.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotMgr.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotPaladinAI.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotPriestAI.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotRogueAI.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotShamanAI.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotWarlockAI.cpp" />
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotWarriorAI.cpp" />
    <ClCompile Include="..\\..\\src\\game\\PlayerDump.cpp" />
    <ClCompile Include="..\\..\\src\\game\\PointMovementGenerator.cpp" />
    <ClCompile Include="..\\..\\src\\game\\PoolManager.cpp" />
@@ -591,6 +604,19 @@
    <ClInclude Include="..\\..\\src\\game\\Pet.h" />
    <ClInclude Include="..\\..\\src\\game\\PetAI.h" />
    <ClInclude Include="..\\..\\src\\game\\Player.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotAI.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotClassAI.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotDeathKnightAI.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotDruidAI.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotHunterAI.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotMageAI.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotMgr.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotPaladinAI.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotPriestAI.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotRogueAI.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotShamanAI.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotWarlockAI.h" />
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotWarriorAI.h" />
    <ClInclude Include="..\\..\\src\\game\\PlayerDump.h" />
    <ClInclude Include="..\\..\\src\\game\\PointMovementGenerator.h" />
    <ClInclude Include="..\\..\\src\\game\\PoolManager.h" />
diff --git a/win/VC100/game.vcxproj.filters b/win/VC100/game.vcxproj.filters
index 804e667..a32fd38 100644
--- a/win/VC100/game.vcxproj.filters
+++ b/win/VC100/game.vcxproj.filters
@@ -445,6 +445,45 @@
    <ClCompile Include="..\\..\\src\\game\\Camera.cpp">
      <Filter>Object</Filter>
    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotAI.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotClassAI.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotDeathKnightAI.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotDruidAI.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotHunterAI.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotMageAI.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotMgr.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotPaladinAI.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotPriestAI.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotRogueAI.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotShamanAI.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotWarlockAI.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
+    <ClCompile Include="..\\..\\src\\game\\PlayerbotWarriorAI.cpp">
+      <Filter>Object</Filter>
+    </ClCompile>
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="..\\..\\src\\game\\AccountMgr.h">
@@ -838,5 +877,44 @@
    <ClInclude Include="..\\..\\src\\game\\Camera.h">
      <Filter>Object</Filter>
    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotAI.h">
+      <Filter>Object</Filter>
+    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotClassAI.h">
+      <Filter>Object</Filter>
+    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotDeathKnightAI.h">
+      <Filter>Object</Filter>
+    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotDruidAI.h">
+      <Filter>Object</Filter>
+    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotHunterAI.h">
+      <Filter>Object</Filter>
+    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotMageAI.h">
+      <Filter>Object</Filter>
+    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotMgr.h">
+      <Filter>Object</Filter>
+    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotPaladinAI.h">
+      <Filter>Object</Filter>
+    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotPriestAI.h">
+      <Filter>Object</Filter>
+    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotRogueAI.h">
+      <Filter>Object</Filter>
+    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotShamanAI.h">
+      <Filter>Object</Filter>
+    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotWarlockAI.h">
+      <Filter>Object</Filter>
+    </ClInclude>
+    <ClInclude Include="..\\..\\src\\game\\PlayerbotWarriorAI.h">
+      <Filter>Object</Filter>
+    </ClInclude>
  </ItemGroup>
</Project>
\\ No newline at end of file

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use