Error with Visual Studios 8. Merging 2 dll mods

Acoustic

Warlord
Joined
Sep 24, 2010
Messages
270
Trying to merge the great 34 civ dll and Civ IV Diplomacy mods, but its not working. I did it before the BNW update but I am getting the same compiling error every time. Here's the log for the expansion 1 (all of them say the same thing):

Spoiler :
Code:
Creating temporary file "C:\Users\Sam\AppData\Local\Temp\RSP00000545523888.rsp" with contents
[
/Ox /Ob2 /Oi /Oy /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\CvWorldBuilderMap\include\\" /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\CvGameCoreDLLUtil\include\\" /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\CvLocalization\include\\" /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\CvGameDatabase\include\\" /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\FirePlace\include\\" /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\FirePlace\include\FireWorks\\" /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\ThirdPartyLibs\Lua51\include\\" /D "FXS_IS_DLL" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "CVGAMECOREDLL_EXPORTS" /D "FINAL_RELEASE" /D "_CRT_SECURE_NO_WARNINGS" /D "_WINDLL" /D "_MBCS" /FD /MD /GS- /Gy /fp:strict /Yu"CvGameCoreDLLPCH.h" /Fp"C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\\BuildTemp\VS2008_CvGameCoreDLL_Expansion1ModWin32\\CvGameCore_Expansion1.pch" /Fo"C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\\BuildTemp\VS2008_CvGameCoreDLL_Expansion1ModWin32\\" /Fd"C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\\BuildTemp\VS2008_CvGameCoreDLL_Expansion1ModWin32\\vc90.pdb" /W3 /c /Zi /Gd /TP /analyze  /EHsc

".\CvDllWorldInfo.cpp"

".\CvDllWorldBuilderMapLoader.cpp"

".\CvDllVictoryInfo.cpp"

".\CvDllUnitInfo.cpp"

".\CvDllUnitCombatClassInfo.cpp"

".\CvDllUnit.cpp"

".\CvDllTerrainInfo.cpp"

".\CvDllTechInfo.cpp"

".\CvDllTeam.cpp"

".\CvDllScriptSystemUtility.cpp"

".\CvDllResourceInfo.cpp"

".\CvDllRandom.cpp"

".\CvDllPromotionInfo.cpp"

".\CvDllPreGame.cpp"

".\CvDllPolicyInfo.cpp"

".\CvDllPlot.cpp"

".\CvDllPlayerOptionInfo.cpp"

".\CvDllPlayerColorInfo.cpp"

".\CvDllPlayer.cpp"

".\CvDllPathFinderUpdate.cpp"

".\CvDllNetworkSyncronization.cpp"

".\CvDllNetMessageHandler.cpp"

".\CvDllNetLoadGameInfo.cpp"

".\CvDllNetInitInfo.cpp"

".\CvDllMissionInfo.cpp"

".\CvDllMissionData.cpp"

".\CvDllMinorCivInfo.cpp"

".\CvDllMap.cpp"

".\CvDllLeaderheadInfo.cpp"

".\CvDllInterfaceModeInfo.cpp"

".\CvDllImprovementInfo.cpp"

".\CvDllHandicapInfo.cpp"

".\CvDllGameSpeedInfo.cpp"

".\CvDllGameOptionInfo.cpp"

".\CvDllGameDeals.cpp"

".\CvDllGameAsynch.cpp"

".\CvDllGame.cpp"

".\CvDllFeatureInfo.cpp"

".\CvDllEraInfo.cpp"

".\CvDllDlcPackageInfo.cpp"

".\CvDllDiplomacyAI.cpp"

".\CvDllDealAI.cpp"

".\CvDllDeal.cpp"

".\CvDllDatabaseUtility.cpp"

".\CvDllContext.cpp"

".\CvDllCombatInfo.cpp"

".\CvDllColorInfo.cpp"

".\CvDllCivilizationInfo.cpp"

".\CvDllCity.cpp"

".\CvDllBuildingInfo.cpp"

".\CvDllBuildInfo.cpp"

".\Lua\CvLuaUnit.cpp"

".\Lua\CvLuaTeamTech.cpp"

".\Lua\CvLuaTeam.cpp"

".\Lua\CvLuaSupport.cpp"

".\Lua\CvLuaPlot.cpp"

".\Lua\CvLuaPlayer.cpp"

".\Lua\CvLuaMap.cpp"

".\Lua\CvLuaGameInfo.cpp"

".\Lua\CvLuaGame.cpp"

".\Lua\CvLuaFractal.cpp"

".\Lua\CvLuaEnums.cpp"

".\Lua\CvLuaDeal.cpp"

".\Lua\CvLuaCity.cpp"

".\Lua\CvLuaArgsHandle.cpp"

".\Lua\CvLuaArea.cpp"

".\CvWorldBuilderMapLoader.cpp"

".\CvWonderProductionAI.cpp"

".\CvUnitProductionAI.cpp"

".\CvUnitMovement.cpp"

".\CvUnitMission.cpp"

".\CvUnitCycler.cpp"

".\CvUnitCombat.cpp"

".\CvUnitClasses.cpp"

".\CvUnit.cpp"

".\CvTypes.cpp"

".\CvTreasury.cpp"

".\CvTraitClasses.cpp"

".\CvTechClasses.cpp"

".\CvTechAI.cpp"

".\CvTeam.cpp"

".\CvTacticalAnalysisMap.cpp"

".\CvTacticalAI.cpp"

".\CvStructs.cpp"

".\cvStopWatch.cpp"

".\CvStartPositioner.cpp"

".\CvSiteEvaluationClasses.cpp"

".\CvReplayMessage.cpp"

".\CvReplayInfo.cpp"

".\CvReligionClasses.cpp"

".\CvRandom.cpp"

".\CvPromotionClasses.cpp"

".\CvProjectProductionAI.cpp"

".\CvProjectClasses.cpp"

".\CvProcessProductionAI.cpp"

".\CvPreGame.cpp"

".\CvPopupReturn.cpp"

".\CvPopupInfoSerialization.cpp"

".\CvPolicyClasses.cpp"

".\CvPolicyAI.cpp"

".\CvPlot.cpp"

".\CvPlayerManager.cpp"

".\CvPlayerAI.cpp"

".\CvPlayer.cpp"

".\CvNotifications.cpp"

".\CvNotificationClasses.cpp"

".\CvMinorCivAI.cpp"

".\CvMilitaryAI.cpp"

".\CvMapGenerator.cpp"

".\CvMap.cpp"

".\CvInternalGameCoreUtils.cpp"

".\CvInfosSerializationHelper.cpp"

".\CvInfos.cpp"

".\CvImprovementClasses.cpp"

".\CvHomelandAI.cpp"

".\CvGrandStrategyAI.cpp"

".\CvGoodyHuts.cpp"

".\CvGlobals.cpp"

".\CvGameTextMgr.cpp"

".\CvGameQueries.cpp"

".\CvGameCoreUtils.cpp"

".\CvGameCoreEnumSerialization.cpp"

".\CvGameCoreDLL.cpp"

".\CvGame.cpp"

".\CvFractal.cpp"

".\CvFlavorManager.cpp"

".\CvEspionageClasses.cpp"

".\CvEmphasisClasses.cpp"

".\CvEconomicAI.cpp"

".\CvDiplomacyRequests.cpp"

".\CvDiplomacyAI.cpp"

".\CvDealClasses.cpp"

".\CvDealAI.cpp"

".\CvDatabaseUtility.cpp"

".\CvDangerPlots.cpp"

".\CvCityStrategyAI.cpp"

".\CvCitySpecializationAI.cpp"

".\CvCityConnections.cpp"

".\CvCityCitizens.cpp"

".\CvCityAI.cpp"

".\CvCity.cpp"

".\CvBuildingProductionAI.cpp"

".\CvBuildingClasses.cpp"

".\CvBuilderTaskingAI.cpp"

".\CvBeliefClasses.cpp"

".\CvBarbarians.cpp"

".\CvAStar.cpp"

".\CvArmyAI.cpp"

".\CvArea.cpp"

".\CvAIOperation.cpp"

".\CvAdvisorRecommender.cpp"

".\CvAdvisorCounsel.cpp"

".\CvAchievementUnlocker.cpp"
]
Creating command line "cl.exe @C:\Users\Sam\AppData\Local\Temp\RSP00000545523888.rsp /nologo /errorReport:prompt"
Creating temporary file "C:\Users\Sam\AppData\Local\Temp\RSP00000645523888.rsp" with contents
[
/Ox /Ob2 /Oi /Oy /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\CvWorldBuilderMap\include\\" /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\CvGameCoreDLLUtil\include\\" /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\CvLocalization\include\\" /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\CvGameDatabase\include\\" /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\FirePlace\include\\" /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\FirePlace\include\FireWorks\\" /I "C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\ThirdPartyLibs\Lua51\include\\" /D "FXS_IS_DLL" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "CVGAMECOREDLL_EXPORTS" /D "FINAL_RELEASE" /D "_CRT_SECURE_NO_WARNINGS" /D "_WINDLL" /D "_MBCS" /FD /MD /GS- /Gy /fp:strict /Yc"CvGameCoreDLLPCH.h" /Fp"C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\\BuildTemp\VS2008_CvGameCoreDLL_Expansion1ModWin32\\CvGameCore_Expansion1.pch" /Fo"C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\\BuildTemp\VS2008_CvGameCoreDLL_Expansion1ModWin32\\" /Fd"C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\\BuildTemp\VS2008_CvGameCoreDLL_Expansion1ModWin32\\vc90.pdb" /W3 /c /Zi /Gd /TP /analyze  /EHsc

".\_precompile.cpp"
]
Creating command line "cl.exe @C:\Users\Sam\AppData\Local\Temp\RSP00000645523888.rsp /nologo /errorReport:prompt"

Output Window
 	 	

Compiling...
cl : Command line warning D9040 : ignoring option '/analyze'; Code Analysis warnings are not available in this edition of the compiler
_precompile.cpp
Compiling...
cl : Command line warning D9040 : ignoring option '/analyze'; Code Analysis warnings are not available in this edition of the compiler
CvDllWorldInfo.cpp
CvDllWorldBuilderMapLoader.cpp
CvDllVictoryInfo.cpp
CvDllUnitInfo.cpp
CvDllUnitCombatClassInfo.cpp
CvDllUnit.cpp
CvDllTerrainInfo.cpp
CvDllTechInfo.cpp
CvDllTeam.cpp
CvDllScriptSystemUtility.cpp
CvDllResourceInfo.cpp
CvDllRandom.cpp
CvDllPromotionInfo.cpp
CvDllPreGame.cpp
CvDllPolicyInfo.cpp
CvDllPlot.cpp
CvDllPlayerOptionInfo.cpp
CvDllPlayerColorInfo.cpp
CvDllPlayer.cpp
CvDllPathFinderUpdate.cpp
Generating Code...
Compiling...
CvDllNetworkSyncronization.cpp
CvDllNetMessageHandler.cpp
CvDllNetLoadGameInfo.cpp
CvDllNetInitInfo.cpp
CvDllMissionInfo.cpp
CvDllMissionData.cpp
CvDllMinorCivInfo.cpp
CvDllMap.cpp
CvDllLeaderheadInfo.cpp
CvDllInterfaceModeInfo.cpp
CvDllImprovementInfo.cpp
CvDllHandicapInfo.cpp
CvDllGameSpeedInfo.cpp
CvDllGameOptionInfo.cpp
CvDllGameDeals.cpp
CvDllGameAsynch.cpp
CvDllGame.cpp
CvDllFeatureInfo.cpp
CvDllEraInfo.cpp
CvDllDlcPackageInfo.cpp
Generating Code...
Compiling...
CvDllDiplomacyAI.cpp
CvDllDealAI.cpp
CvDllDeal.cpp
CvDllDatabaseUtility.cpp
CvDllContext.cpp
CvDllCombatInfo.cpp
CvDllColorInfo.cpp
CvDllCivilizationInfo.cpp
CvDllCity.cpp
CvDllBuildingInfo.cpp
CvDllBuildInfo.cpp
CvLuaUnit.cpp
CvLuaTeamTech.cpp
CvLuaTeam.cpp
CvLuaSupport.cpp
CvLuaPlot.cpp
CvLuaPlayer.cpp
CvLuaMap.cpp
CvLuaGameInfo.cpp
CvLuaGame.cpp
Generating Code...
Compiling...
CvLuaFractal.cpp
CvLuaEnums.cpp
CvLuaDeal.cpp
CvLuaCity.cpp
CvLuaArgsHandle.cpp
CvLuaArea.cpp
CvWorldBuilderMapLoader.cpp
CvWonderProductionAI.cpp
CvUnitProductionAI.cpp
CvUnitMovement.cpp
CvUnitMission.cpp
CvUnitCycler.cpp
CvUnitCombat.cpp
CvUnitClasses.cpp
CvUnit.cpp
CvTypes.cpp
CvTreasury.cpp
CvTraitClasses.cpp
CvTechClasses.cpp
CvTechAI.cpp
Generating Code...
Compiling...
CvTeam.cpp
CvTacticalAnalysisMap.cpp
CvTacticalAI.cpp
CvStructs.cpp
cvStopWatch.cpp
CvStartPositioner.cpp
CvSiteEvaluationClasses.cpp
CvReplayMessage.cpp
CvReplayInfo.cpp
CvReligionClasses.cpp
CvRandom.cpp
CvPromotionClasses.cpp
CvProjectProductionAI.cpp
CvProjectClasses.cpp
CvProcessProductionAI.cpp
CvPreGame.cpp
CvPopupReturn.cpp
CvPopupInfoSerialization.cpp
CvPolicyClasses.cpp
CvPolicyAI.cpp
Generating Code...
Compiling...
CvPlot.cpp
CvPlayerManager.cpp
CvPlayerAI.cpp
CvPlayer.cpp
CvNotifications.cpp
CvNotificationClasses.cpp
CvMinorCivAI.cpp
CvMilitaryAI.cpp
CvMapGenerator.cpp
CvMap.cpp
CvInternalGameCoreUtils.cpp
CvInfosSerializationHelper.cpp
CvInfos.cpp
CvImprovementClasses.cpp
CvHomelandAI.cpp
CvGrandStrategyAI.cpp
CvGoodyHuts.cpp
CvGlobals.cpp
CvGameTextMgr.cpp
CvGameQueries.cpp
Generating Code...
Compiling...
CvGameCoreUtils.cpp
CvGameCoreEnumSerialization.cpp
CvGameCoreDLL.cpp
CvGame.cpp
CvFractal.cpp
CvFlavorManager.cpp
CvEspionageClasses.cpp
CvEmphasisClasses.cpp
CvEconomicAI.cpp
CvDiplomacyRequests.cpp
CvDiplomacyAI.cpp
c:\users\sam\documents\visual studio 2008\projects\cvgamecoresource\fireplace\include\fireworks\FFastVector.h(810) : warning C4200: nonstandard extension used : zero-sized array in struct/union
        Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array
        C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\CvGameCoreDLLUtil\include\CvWeightedVector.h(263) : see reference to class template instantiation 'FStaticVector' being compiled
        with
        [
            T=CvWeightedVector::WeightedElement,
            L=0,
            bPODType=true
        ]
        .\CvDiplomacyAI.cpp(3721) : see reference to class template instantiation 'CvWeightedVector' being compiled
        with
        [
            T=PlayerTypes,
            L=0,
            bPODType=true
        ]
c:\users\sam\documents\visual studio 2008\projects\cvgamecoresource\fireplace\include\fireworks\FFastVector.h(811) : error C2229: class 'FStaticVector' has an illegal zero-sized array
        with
        [
            T=CvWeightedVector::WeightedElement,
            L=0,
            bPODType=true
        ]
CvDealClasses.cpp
CvDealAI.cpp
CvDatabaseUtility.cpp
CvDangerPlots.cpp
CvCityStrategyAI.cpp
CvCitySpecializationAI.cpp
CvCityConnections.cpp
CvCityCitizens.cpp
CvCityAI.cpp
Generating Code...
Compiling...
CvCity.cpp
CvBuildingProductionAI.cpp
CvBuildingClasses.cpp
CvBuilderTaskingAI.cpp
CvBeliefClasses.cpp
CvBarbarians.cpp
CvAStar.cpp
CvArmyAI.cpp
CvArea.cpp
CvAIOperation.cpp
CvAdvisorRecommender.cpp
CvAdvisorCounsel.cpp
CvAchievementUnlocker.cpp
Generating Code...

Results
 	 	

Build log was saved at "file://C:\Users\Sam\Documents\Visual Studio 2008\Projects\CvGameCoreSource\BuildTemp\VS2008_CvGameCoreDLL_Expansion1ModWin32\BuildLog.htm"
CvGameCoreDLL_Expansion1 - 1 error(s), 3 warning(s)
 
Obvious question first. Can you compile each DLL individually (ie before you try to merge them)?

If you can, the problem is in how you've merged the code, if not, then the problem is in how you've got VS-2008 set up.

I'm not even sure the BNW DLLs still compile with VS-2008, given that VS-2010 is available and that the devs seem to have moved onto VS-2012
 
Whenever I compile the Diplomacy mod by itself, it works. Whenever I add the 2 new files he supplied to me (for updating), where ever I added them...that build failed (expansion 2). It seems to be a like a permission thing, whenever I change something (even if I know there isn't any errors) it fails to build. Just tried 2010, and it did the same thing.
 
Nah lol. Doesn't change a thing. Idk, it's really weird. Ever seen that error before?
 
Are you sure you have the most up-to-date copy of the base source? As my FFastVector.h doesn't have that code on line 811 but on line 817

And I'm pretty sure I've never altered that file in my own mod
 
When I linked you the DLL, did I link you a download of every file in it, or just the two???

I should have linked you every file in the Expansion2 folder
 
Mmmmm.

Excepting a couple of double to float truncation warnings

Code:
CvGlobals.cpp(1893): warning C4305: 'initializing' : truncation from 'double' to 'float'
CvGlobals.cpp(1893): warning C4305: 'initializing' : truncation from 'double' to 'float'

That code compiles without error for me on VS-2010
 
So all you did was:

Dl the source code

Replace expansion 2 with updated files

Put the CvGameCoreSource into 2010 Project folder

Change output of vanilla, expansion 1, and expansion 2 linker's to the ones listed in the
"how to compile dll" thread.

Save all

Build solution?
 
Nope.

All I did was
  • Download both zips.
  • Renamed my "C:\Users\{username}\Documents\Visual Studio 2010\Projects\CvGameCoreSource" sub-dir to keep it safe
  • Unziped the V8 source into "C:\Users\{username}\Documents\Visual Studio 2010\Projects"
  • Unzipped the other over "C:\Users\{username}\Documents\Visual Studio 2010\Projects\CvGameCoreSource\CvGameCoreDLL_Expansion2"
  • Started VS-2010
  • Opened "C:\Users\{username}\Documents\Visual Studio 2010\Projects\CvGameCoreSource\CvGameCoreDLL.vs2010.sln"
  • Cleaned the project (Main menu, Build, Clean Solution)
  • Built the project (Main menu, Build, Build Solution)

Which is pretty much the same but avoids any mistakes with renaming output dll's
 
Right on, got it to working without editing the max number of civs. This is so frustrating, the error that it gives me is in no relation to the files that I actually edited.
 
Mmmmm.

Excepting a couple of double to float truncation warnings

Code:
CvGlobals.cpp(1893): warning C4305: 'initializing' : truncation from 'double' to 'float'
CvGlobals.cpp(1893): warning C4305: 'initializing' : truncation from 'double' to 'float'

That code compiles without error for me on VS-2010

yup, those would be mine
 
worked after limiting the major civs allowed from 63 to 43 :huh:

Will do some testing tonight and see if it is completely working and you can do whatever you want with it Putmalk.
 
Back
Top Bottom