1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

trouble compiling rhye's cvgamecoredll

Discussion in 'Rhye's and Fall Modmods' started by virtualpolitik, Jul 28, 2010.

  1. virtualpolitik

    virtualpolitik Chieftain

    Joined:
    Nov 2, 2009
    Messages:
    34
    Location:
    United States
    hey guys, i'm working on a modmod for rhye's to improve AI tactics in war. i'm using latest versions of the game / mod, Microsoft Virtual C++ 2010 Express and have had no problems getting the vanilla BTS cvgamecoredll to compile. so far so good.

    unfortunately, after pasting the rhye's cvgamecore files into my working folder and overwriting the vanilla ones where necessary, i now receive errors when trying to compile.

    my compiler output looks like this:

    Spoiler :

    1>------ Build started: Project: CvGameCoreDLL, Configuration: Debug Win32 ------
    1>
    1> Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
    1> Copyright (C) Microsoft Corporation. All rights reserved.
    1>
    1> "C:/Program Files (x86)/Microsoft Visual C++ Toolkit 2003/bin/cl.exe" /nologo /MD /Gd /G7 /GR /O2 /W3 /EHsc /DWIN32 /DNDEBUG /D_WINDOWS /D_USRDLL /DCVGAMECOREDLL_EXPORTS /DFINAL_RELEASE /IBoost-1.32.0/include /IPython24/include /I"C:/Program Files (x86)/Microsoft Visual C++ Toolkit 2003/include" /I"C:/Program Files/Microsoft SDKs/Windows/v7.0A/Include" /c CvArea.cpp /FoFinal_Release/CvArea.obj
    1> CvArea.cpp
    1> "C:/Program Files (x86)/Microsoft Visual C++ Toolkit 2003/bin/cl.exe" /nologo /MD /Gd /G7 /GR /O2 /W3 /EHsc /DWIN32 /DNDEBUG /D_WINDOWS /D_USRDLL /DCVGAMECOREDLL_EXPORTS /DFINAL_RELEASE /IBoost-1.32.0/include /IPython24/include /I"C:/Program Files (x86)/Microsoft Visual C++ Toolkit 2003/include" /I"C:/Program Files/Microsoft SDKs/Windows/v7.0A/Include" /c CvArtFileMgr.cpp /FoFinal_Release/CvArtFileMgr.obj

    ... etc etc long list of stuff with no errors ...

    Final_Release\CyPlotInterface1.obj Final_Release\CyRandomInterface.obj Final_Release\CyReplayInfo.obj Final_Release\CySelectionGroup.obj Final_Release\CySelectionGroupInterface.obj Final_Release\CyStructsInterface1.obj Final_Release\CyTeam.obj Final_Release\CyTeamInterface.obj Final_Release\CyUnit.obj Final_Release\CyUnitInterface1.obj Final_Release\FAssert.obj Final_Release\FDialogTemplate.obj Final_Release\_precompile.obj /debug /INCREMENTAL:NO /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF
    1> Creating library Final_Release\CvGameCoreDLL.lib and object Final_Release\CvGameCoreDLL.exp
    1>CvTeam.obj : error LNK2001: unresolved external symbol "int * startingTurn" (?startingTurn@@3PAHA)
    1>CvTeamAI.obj : error LNK2001: unresolved external symbol "int * startingTurn" (?startingTurn@@3PAHA)
    1>CvCity.obj : error LNK2019: unresolved external symbol "int * startingTurn" (?startingTurn@@3PAHA) referenced in function "public: bool __thiscall CvCity::canConstruct(enum BuildingTypes,bool,bool,bool)const " (?canConstruct@CvCity@@QBE_NW4BuildingTypes@@_N11@Z)
    1>CvGame.obj : error LNK2001: unresolved external symbol "int * startingTurn" (?startingTurn@@3PAHA)
    1>CvInfos.obj : error LNK2001: unresolved external symbol "int * startingTurn" (?startingTurn@@3PAHA)
    1>CvPlayerAI.obj : error LNK2001: unresolved external symbol "int * startingTurn" (?startingTurn@@3PAHA)
    1>CvCity.obj : error LNK2019: unresolved external symbol "int (* civSpreadFactor)[7]" (?civSpreadFactor@@3PAY06HA) referenced in function "protected: void __thiscall CvCity::doReligion(void)" (?doReligion@CvCity@@IAEXXZ)
    1>CvCityAI.obj : error LNK2019: unresolved external symbol "int (* borders)[27]" (?borders@@3PAY0BL@HA) referenced in function "public: int __thiscall CvCityAI::AI_buildingValueThreshold(enum BuildingTypes,int,int)" (?AI_buildingValueThreshold@CvCityAI@@QAEHW4BuildingTypes@@HH@Z)
    1>CvGame.obj : error LNK2019: unresolved external symbol "int * turnPlayed" (?turnPlayed@@3PAHA) referenced in function "protected: void __thiscall CvGame::doTurn(void)" (?doTurn@CvGame@@IAEXXZ)
    1>CvPlayer.obj : error LNK2001: unresolved external symbol "int * turnPlayed" (?turnPlayed@@3PAHA)
    1>CvGameTextMgr.obj : error LNK2019: unresolved external symbol "char (* rating)[6][15]" (?rating@@3PAY15P@DA) referenced in function "public: void __thiscall CvGameTextMgr::parseCivInfos(class CvWStringBuffer &,enum CivilizationTypes,bool,bool)" (?parseCivInfos@CvGameTextMgr@@QAEXAAVCvWStringBuffer@@W4CivilizationTypes@@_N2@Z)
    1>CvGameTextMgr.obj : error LNK2019: unresolved external symbol "char (* uniqueGoals)[3][18]" (?uniqueGoals@@3PAY12BC@DA) referenced in function "public: void __thiscall CvGameTextMgr::parseCivInfos(class CvWStringBuffer &,enum CivilizationTypes,bool,bool)" (?parseCivInfos@CvGameTextMgr@@QAEXAAVCvWStringBuffer@@W4CivilizationTypes@@_N2@Z)
    1>CvGameTextMgr.obj : error LNK2019: unresolved external symbol "char (* uniquePower)[2][16]" (?uniquePower@@3PAY11BA@DA) referenced in function "public: void __thiscall CvGameTextMgr::parseCivInfos(class CvWStringBuffer &,enum CivilizationTypes,bool,bool)" (?parseCivInfos@CvGameTextMgr@@QAEXAAVCvWStringBuffer@@W4CivilizationTypes@@_N2@Z)
    1>CvGameTextMgr.obj : error LNK2019: unresolved external symbol "char (* loadingTime600AD)[4]" (?loadingTime600AD@@3PAY03DA) referenced in function "public: void __thiscall CvGameTextMgr::parseCivInfos(class CvWStringBuffer &,enum CivilizationTypes,bool,bool)" (?parseCivInfos@CvGameTextMgr@@QAEXAAVCvWStringBuffer@@W4CivilizationTypes@@_N2@Z)
    1>CvGameTextMgr.obj : error LNK2019: unresolved external symbol "char (* loadingTime)[4]" (?loadingTime@@3PAY03DA) referenced in function "public: void __thiscall CvGameTextMgr::parseCivInfos(class CvWStringBuffer &,enum CivilizationTypes,bool,bool)" (?parseCivInfos@CvGameTextMgr@@QAEXAAVCvWStringBuffer@@W4CivilizationTypes@@_N2@Z)
    1>CvGameTextMgr.obj : error LNK2019: unresolved external symbol "bool * startingEra600AD" (?startingEra600AD@@3PA_NA) referenced in function "public: void __thiscall CvGameTextMgr::parseCivInfos(class CvWStringBuffer &,enum CivilizationTypes,bool,bool)" (?parseCivInfos@CvGameTextMgr@@QAEXAAVCvWStringBuffer@@W4CivilizationTypes@@_N2@Z)
    1>CvGameTextMgr.obj : error LNK2019: unresolved external symbol "char (* startingYear600AD)[6]" (?startingYear600AD@@3PAY05DA) referenced in function "public: void __thiscall CvGameTextMgr::parseCivInfos(class CvWStringBuffer &,enum CivilizationTypes,bool,bool)" (?parseCivInfos@CvGameTextMgr@@QAEXAAVCvWStringBuffer@@W4CivilizationTypes@@_N2@Z)
    1>CvGameTextMgr.obj : error LNK2019: unresolved external symbol "bool * startingEra" (?startingEra@@3PA_NA) referenced in function "public: void __thiscall CvGameTextMgr::parseCivInfos(class CvWStringBuffer &,enum CivilizationTypes,bool,bool)" (?parseCivInfos@CvGameTextMgr@@QAEXAAVCvWStringBuffer@@W4CivilizationTypes@@_N2@Z)
    1>CvGameTextMgr.obj : error LNK2019: unresolved external symbol "char (* startingYear)[6]" (?startingYear@@3PAY05DA) referenced in function "public: void __thiscall CvGameTextMgr::parseCivInfos(class CvWStringBuffer &,enum CivilizationTypes,bool,bool)" (?parseCivInfos@CvGameTextMgr@@QAEXAAVCvWStringBuffer@@W4CivilizationTypes@@_N2@Z)
    1>CvPlayer.obj : error LNK2019: unresolved external symbol "int (* settlersMaps)[68][124]" (?settlersMaps@@3PAY1EE@HM@HA) referenced in function "public: int __thiscall CvPlayer::getSettlersMaps(int,int)" (?getSettlersMaps@CvPlayer@@QAEHHH@Z)
    1>CvPlayerAI.obj : error LNK2001: unresolved external symbol "int (* settlersMaps)[68][124]" (?settlersMaps@@3PAY1EE@HM@HA)
    1>CvPlot.obj : error LNK2001: unresolved external symbol "int (* settlersMaps)[68][124]" (?settlersMaps@@3PAY1EE@HM@HA)
    1>CvUnitAI.obj : error LNK2001: unresolved external symbol "int (* settlersMaps)[68][124]" (?settlersMaps@@3PAY1EE@HM@HA)
    1>CvPlayer.obj : error LNK2019: unresolved external symbol "int * civDynamicNamesEraThreshold" (?civDynamicNamesEraThreshold@@3PAHA) referenced in function "public: void __thiscall CvPlayer::processCivNames(void)" (?processCivNames@CvPlayer@@QAEXXZ)
    1>CvPlayer.obj : error LNK2019: unresolved external symbol "unsigned short (* civDynamicNames)[22][19]" (?civDynamicNames@@3PAY1BG@BD@GA) referenced in function "public: void __thiscall CvPlayer::processCivNames(void)" (?processCivNames@CvPlayer@@QAEXXZ)
    1>CvPlayer.obj : error LNK2019: unresolved external symbol "int * civDynamicNamesFlag" (?civDynamicNamesFlag@@3PAHA) referenced in function "public: void __thiscall CvPlayer::processCivNames(void)" (?processCivNames@CvPlayer@@QAEXXZ)
    1>Final_Release\CvGameCoreDLL.dll : fatal error LNK1120: 17 unresolved externals
    1>NMAKE : fatal error U1077: '"C:/Program Files (x86)/Microsoft Visual C++ Toolkit 2003/bin/link.exe"' : return code '0x460'
    1> Stop.
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "nmake Final_Release" exited with code 2.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


    i did some browsing about the 'unresolved external symbol' error, but uhh... i couldn't really figure out how to fix it. something about having the 'header files' in the right place? i thought that was what all those *.h files i pasted were! :confused:

    any help would be appreciated!
     
  2. LuKo

    LuKo The Royal Guard

    Joined:
    Aug 28, 2006
    Messages:
    1,501
    Location:
    Poland
  3. embryodead

    embryodead Caliph

    Joined:
    Jan 1, 2003
    Messages:
    5,179
    Location:
    basement
    You're getting these errors because the compiler can't find CvRhyes.cpp and CvRhyes.h. You need to add them to your Makefile (the list is a line that starts with Debug_OBJS= ... and Final_Release_OBJS= ...)
     
  4. virtualpolitik

    virtualpolitik Chieftain

    Joined:
    Nov 2, 2009
    Messages:
    34
    Location:
    United States
  5. LuKo

    LuKo The Royal Guard

    Joined:
    Aug 28, 2006
    Messages:
    1,501
    Location:
    Poland

Share This Page