ZhengPeiRu21 / mod-playerbots

AzerothCore Playerbots Module
MIT License
193 stars 93 forks source link

Build failing #155

Closed robwetz closed 1 year ago

robwetz commented 1 year ago

using master branch of mod-playerbots and Playerbot branch of azerothcore-wotlk

Microsoft Visual Studio Community 2022 (64-bit) - Current VisualStudio.17.Release/17.4.4+33213.308 Microsoft .NET Framework Version 4.8.04084

25>------ Build started: Project: worldserver, Configuration: RelWithDebInfo x64 ------ 25>Building Custom Rule C:/AzerothcorePlayerbot/src/server/apps/CMakeLists.txt 25>cmake_pch.cxx 25>Main.cpp 25>ACSoap.cpp 25>CliRunnable.cpp 25>RASession.cpp 25>WheatyExceptionReport.cpp 25>ServiceWin32.cpp 25> Creating library C:/Build/src/server/apps/RelWithDebInfo/worldserver.lib and object C:/Build/src/server/apps/RelWithDebInfo/worldserver.exp 25>modules.lib(ModulesLoader.obj) : error LNK2019: unresolved external symbol "void cdecl Addmod_playerbots_AzerothCoreScripts(void)" (?Addmod_playerbots_AzerothCoreScripts@@YAXXZ) referenced in function "void cdecl AddModulesScripts(void)" (?AddModulesScripts@@YAXXZ) 25>C:\Build\bin\RelWithDebInfo\worldserver.exe : fatal error LNK1120: 1 unresolved externals 25>Done building project "worldserver.vcxproj" -- FAILED.

robwetz commented 1 year ago

I resolved my issue. Just in case anyone makes the same mistake i made; If you took the default directory name for the module, it's "mod-playerbots-AzerothCore". Rename that directory to, "mod-playerbots".