Help- C++ compile error

This is a link to the guide that I used. From this, I have been able to compile a working CvGameCoreDLL for BtS V3.13. The directions are for Warlords, but all you need to change is the makefile which is in a post on page 3 or something of the thread.

http://forums.civfanatics.com/showthread.php?t=196283

Also, you might want to look over the advice of Seven05. C++ is complex at first, but a very useful tool once you can get it to work.
 
Thanks marx, yeah... I tried that guide with Microsoft Visual C++ 2005 Express Edition and couldn't get it to work but then I tried a program called codeblocks and had no probelms at all with BTS... some thing changed after I patched with 3.13.. or I changed some thing along the way because I'm having the exact same error Zulu had.. I see his last post was in october... I'll try emailing him and asking him how he resolved the probelm.


a sample of the error log incase any one has had the same probelm....

Project : CvGameCoreDLL
Compiler : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\CvGameCoreDLL\
--------------------------------------------------------------------------------
Switching to target: Final Release
Linking dynamic library: CvGameCoreDLL.dll
Creating library CvGameCoreDLL.lib and object CvGameCoreDLL.exp
CyPlayer.obj : error LNK2019: unresolved external symbol "public: class CvCity * __thiscall CvPlayer::initCity(int,int,bool)" (?initCity@CvPlayer@@QAEPAVCvCity@@HH_N@Z) referenced in function "public: class CyCity * __thiscall CyPlayer::initCity(int,int)" (?initCity@CyPlayer@@QAEPAVCyCity@@HH@Z)
CyPlayer.obj : error LNK2019: unresolved external symbol "public: void __thiscall CvPlayer::acquireCity(class CvCity *,bool,bool)" (?acquireCity@CvPlayer@@QAEXPAVCvCity@@_N1@Z) referenced in function "public: void __thiscall CyPlayer::acquireCity(class CyCity *,bool,bool)" (?acquireCity@CyPlayer@@QAEXPAVCyCity@@_N1@Z)
CyPlot.obj : error LNK2019: unresolved external symbol "public: void __thiscall CvPlot::setOwner(enum PlayerTypes,bool)" (?setOwner@CvPlot@@QAEXW4PlayerTypes@@_N@Z) referenced in function "public: void __thiscall CyPlot::setOwner(int)" (?setOwner@CyPlot@@QAEXH@Z)
CyPlot.obj : error LNK2019: unresolved external symbol "public: void __thiscall CvPlot::setRouteType(enum RouteTypes)" (?setRouteType@CvPlot@@QAEXW4RouteTypes@@@Z) referenced in function "public: void __thiscall CyPlot::setRouteType(int)" (?setRouteType@CyPlot@@QAEXH@Z)
CyPlot.obj : error LNK2019: unresolved external symbol "public: void __thiscall CvPlot::setCulture(enum PlayerTypes,int,bool)" (?setCulture@CvPlot@@QAEXW4PlayerTypes@@H_N@Z) referenced in function "public: void __thiscall CyPlot::setCulture(int,int,bool)" (?setCulture@CyPlot@@QAEXHH_N@Z)
CyPlot.obj : error LNK2019: unresolved external symbol "public: void __thiscall CvPlot::changeVisibilityCount(enum TeamTypes,int,enum InvisibleTypes)" (?changeVisibilityCount@CvPlot@@QAEXW4TeamTypes@@HW4InvisibleTypes@@@Z) referenced in function "public: void __thiscall CyPlot::changeVisibilityCount(int,int,int)" (?changeVisibilityCount@CyPlot@@QAEXHHH@Z)
CySelectionGroup.obj : error LNK2019: unresolved external symbol "public: enum RouteTypes __thiscall CvSelectionGroup::getBestBuildRoute(class CvPlot *,enum BuildTypes *)" (?getBestBuildRoute@CvSelectionGroup@@QAE?AW4RouteTypes@@PAVCvPlot@@PAW4BuildTypes@@@Z) referenced in function "public: int __thiscall CySelectionGroup::getBestBuildRoute(class CyPlot *,enum BuildTypes *)" (?getBestBuildRoute@CySelectionGroup@@QAEHPAVCyPlot@@PAW4BuildTypes@@@Z)
CySelectionGroup.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CvSelectionGroup::isAmphibPlot(class CvPlot *)" (?isAmphibPlot@CvSelectionGroup@@QAE_NPAVCvPlot@@@Z) referenced in function "public: bool __thiscall CySelectionGroup::isAmphibPlot(class CyPlot *)" (?isAmphibPlot@CySelectionGroup@@QAE_NPAVCyPlot@@@Z)
CySelectionGroup.obj : error LNK2019: unresolved external symbol "public: int __thiscall CvSelectionGroup::getID(void)" (?getID@CvSelectionGroup@@QAEHXZ) referenced in function "public: int __thiscall CySelectionGroup::getID(void)" (?getID@CySelectionGroup@@QAEHXZ)
CySelectionGroup.obj : error LNK2019: unresolved external symbol "public: enum AutomateTypes __thiscall CvSelectionGroup::getAutomateType(void)" (?getAutomateType@CvSelectionGroup@@QAE?AW4AutomateTypes@@XZ) referenced in function "public: int __thiscall CySelectionGroup::getAutomateType(void)" (?getAutomateType@CySelectionGroup@@QAEHXZ)
CySelectionGroup.obj : error LNK2019: unresolved external symbol "public: int __thiscall CvSelectionGroup::getLengthMissionQueue(void)" (?getLengthMissionQueue@CvSelectionGroup@@QAEHXZ) referenced in function "public: int __thiscall CySelectionGroup::getLengthMissionQueue(void)" (?getLengthMissionQueue@CySelectionGroup@@QAEHXZ)
CySelectionGroup.obj : error LNK2019: unresolved external symbol "public: struct MissionData * __thiscall CvSelectionGroup::getMissionFromQueue(int)" (?getMissionFromQueue@CvSelectionGroup@@QAEPAUMissionData@@H@Z) referenced in function "public: struct MissionData * __thiscall CySelectionGroup::getMissionFromQueue(int)" (?getMissionFromQueue@CySelectionGroup@@QAEPAUMissionData@@H@Z)
CySelectionGroup.obj : error LNK2019: unresolved external symbol "public: int __thiscall CvSelectionGroup::getMissionType(int)" (?getMissionType@CvSelectionGroup@@QAEHH@Z) referenced in function "public: int __thiscall CySelectionGroup::getMissionType(int)" (?getMissionType@CySelectionGroup@@QAEHH@Z)
CySelectionGroup.obj : error LNK2019: unresolved external symbol "public: int __thiscall CvSelectionGroup::getMissionData1(int)" (?getMissionData1@CvSelectionGroup@@QAEHH@Z) referenced in function "public: int __thiscall CySelectionGroup::getMissionData1(int)" (?getMissionData1@CySelectionGroup@@QAEHH@Z)
CySelectionGroup.obj : error LNK2019: unresolved external symbol "public: int __thiscall CvSelectionGroup::getMissionData2(int)" (?getMissionData2@CvSelectionGroup@@QAEHH@Z) referenced in function "public: int __thiscall CySelectionGroup::getMissionData2(int)" (?getMissionData2@CySelectionGroup@@QAEHH@Z)
CyTeam.obj : error LNK2019: unresolved external symbol "public: void __thiscall CvTeam::declareWar(enum TeamTypes,bool)" (?declareWar@CvTeam@@QAEXW4TeamTypes@@_N@Z) referenced in function "public: void __thiscall CyTeam::declareWar(int,bool)" (?declareWar@CyTeam@@QAEXH_N@Z)
CyUnit.obj : error LNK2019: unresolved external symbol "public: void __thiscall CvUnit::jumpToNearestValidPlot(void)" (?jumpToNearestValidPlot@CvUnit@@QAEXXZ) referenced in function "public: void __thiscall CyUnit::jumpToNearestValidPlot(void)" (?jumpToNearestValidPlot@CyUnit@@QAEXXZ)
CyUnit.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CvUnit::canPlunder(class CvPlot const *)const " (?canPlunder@CvUnit@@QBE_NPBVCvPlot@@@Z) referenced in function "public: bool __thiscall CyUnit::canPlunder(class CyPlot *)" (?canPlunder@CyUnit@@QAE_NPAVCyPlot@@@Z)
CyUnit.obj : error LNK2019: unresolved external symbol "public: enum InvisibleTypes __thiscall CvUnit::getSeeInvisibleType(void)const " (?getSeeInvisibleType@CvUnit@@QBE?AW4InvisibleTypes@@XZ) referenced in function "public: int __thiscall CyUnit::getSeeInvisibleType(void)" (?getSeeInvisibleType@CyUnit@@QAEHXZ)
CyUnit.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CvUnit::canCoexistWithEnemyUnit(void)const " (?canCoexistWithEnemyUnit@CvUnit@@QBE_NXZ) referenced in function "public: bool __thiscall CyUnit::canCoexistWithEnemyUnit(void)" (?canCoexistWithEnemyUnit@CyUnit@@QAE_NXZ)
CyUnit.obj : error LNK2019: unresolved external symbol "public: void __thiscall CvUnit::setXY(int,int,bool,bool,bool)" (?setXY@CvUnit@@QAEXHH_N00@Z) referenced in function "public: void __thiscall CyUnit::setXY(int,int,bool,bool,bool)" (?setXY@CyUnit@@QAEXHH_N00@Z)
CyUnit.obj : error LNK2019: unresolved external symbol "public: enum PlayerTypes __thiscall CvUnit::getCombatOwner(enum TeamTypes)const " (?getCombatOwner@CvUnit@@QBE?AW4PlayerTypes@@W4TeamTypes@@@Z) referenced in function "public: int __thiscall CyUnit::getCombatOwner(int)" (?getCombatOwner@CyUnit@@QAEHH@Z)
CvGameCoreDLL.dll : fatal error LNK1120: 22 unresolved externals
Process terminated with status 1 (0 minutes, 36 seconds)
23 errors, 0 warnings
 
Top Bottom