Compiling community patch : getting linking errors

frutiemax

Warlord
Joined
Jan 19, 2015
Messages
127
I've tried to compile the community patch DLL but I am getting these linker errors:

Code:
CvLuaPlot.obj : error LNK2001: unresolved external symbol "class CustomMods gCustomMods" (?gCustomMods@@3VCustomMods@@A)
3>CvDllNetMessageHandler.obj : error LNK2001: unresolved external symbol "class CustomMods gCustomMods" (?gCustomMods@@3VCustomMods@@A)
3>CvLuaCity.obj : error LNK2001: unresolved external symbol "class CustomMods gCustomMods" (?gCustomMods@@3VCustomMods@@A)
3>CvLuaGame.obj : error LNK2001: unresolved external symbol "class CustomMods gCustomMods" (?gCustomMods@@3VCustomMods@@A)
3>CvLuaPlayer.obj : error LNK2001: unresolved external symbol "class CustomMods gCustomMods" (?gCustomMods@@3VCustomMods@@A) ...

I also successfully built the unmodded source code of Civ 5 using visual studio 2008. Any idea on why am I getting those errors?
 
CustomMods.cpp seems to be missing from your project file. but anyway, use vs2010 and the provided project file CvGameCoreDLL_Expansion2. it should build right out of the box
 
Back
Top Bottom