Compiler Error Message

Monaldinio

Prince
Joined
Jan 6, 2010
Messages
415
Location
Rostock
Could some one tell me what that means and what i have to do?!?! Because the is no error message during compiling...


Code:
1> "C:\Programme\Firaxis Games\Kompilieren\WindowsSDK\bin\rc.exe" /FoRelease\CvGameCoreDLL.res /IBoost-1.32.0/include /IPython24/include /I"C:\Programme\Firaxis Games\Kompilieren\Microsoft Visual C++ Toolkit 2003/include" /I"C:\Programme\Firaxis Games\Kompilieren\WindowsSDK/Include" /I"C:\Programme\Firaxis Games\Kompilieren\WindowsSDK/Include/mfc" /I"C:\Programme\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\CvGameCoreDLL\Boost-1.32.0/include" /I"C:\Programme\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\CvGameCoreDLL\Python24/include" CvGameCoreDLL.rc
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1> "C:\Programme\Firaxis Games\Kompilieren\Microsoft Visual C++ Toolkit 2003\bin\link.exe" /out:Release\CvGameCoreDLL.dll /INCREMENTAL:NO /OPT:REF /OPT:ICF /PDB:"Release\CvGameCoreDLL.pdb" /DLL /NOLOGO /SUBSYSTEM:WINDOWS /LARGEADDRESSAWARE /TLBID:1 /LIBPATH:Python24/libs /LIBPATH:boost-1.32.0/libs/ boost_python-vc71-mt-1_32.lib /LIBPATH:"C:\Programme\Firaxis Games\Kompilieren\Microsoft Visual C++ Toolkit 2003/lib" /LIBPATH:"C:\Programme\Firaxis Games\Kompilieren\WindowsSDK/Lib"  /LIBPATH:"C:\Programme\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\CvGameCoreDLL\Boost-1.32.0/libs" /LIBPATH:"C:\Programme\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\CvGameCoreDLL\Python24/libs" winmm.lib user32.lib Release\CvArea.obj  Release\CvArtFileMgr.obj  Release\CvCity.obj  Release\CvCityAI.obj  Release\CvDeal.obj  Release\CvDiploParameters.obj  Release\CvDLLButtonPopup.obj  Release\CvDLLEntity.obj  Release\CvDLLPython.obj  Release\CvDllPythonEvents.obj  Release\CvDllTranslator.obj  Release\CvDLLWidgetData.obj  Release\CvEventReporter.obj  Release\CvFractal.obj  Release\CvGame.obj  Release\CvGameAI.obj  Release\CvGameCoreDLL.obj  Release\CvGameCoreUtils.obj  Release\CvGameInterface.obj  Release\CvGameTextMgr.obj  Release\CvGlobals.obj  Release\CvHallOfFameInfo.obj  Release\CvInfos.obj  Release\CvInfoWater.obj  Release\CvInitCore.obj  Release\CvMap.obj  Release\CvMapGenerator.obj  Release\CvMessageControl.obj  Release\CvMessageData.obj  Release\CvPlayer.obj  Release\CvPlayerAI.obj  Release\CvPlot.obj  Release\CvPlotGroup.obj  Release\CvPopupInfo.obj  Release\CvPopupReturn.obj  Release\CvRandom.obj  Release\CvReplayInfo.obj  Release\CvReplayMessage.obj  Release\CvSelectionGroup.obj  Release\CvSelectionGroupAI.obj  Release\CvStatistics.obj  Release\CvStructs.obj  Release\CvTalkingHeadMessage.obj  Release\CvTeam.obj  Release\CvTeamAI.obj  Release\CvTextScreens.obj  Release\CvUnit.obj  Release\CvUnitAI.obj  Release\CvXMLLoadUtility.obj  Release\CvXMLLoadUtilityGet.obj  Release\CvXMLLoadUtilityInit.obj  Release\CvXMLLoadUtilitySet.obj  Release\CyArea.obj  Release\CyAreaInterface.obj  Release\CyArgsList.obj  Release\CyArtFileMgr.obj  Release\CyArtFileMgrInterface.obj  Release\CyCity.obj  Release\CyCityInterface1.obj  Release\CyCityInterface2.obj  Release\CyDeal.obj  Release\CyEnumsInterface.obj  Release\CyGame.obj  Release\CyGameCoreUtils.obj  Release\CyGameCoreUtilsInterface.obj  Release\CyGameInterface.obj  Release\CyGameTextMgr.obj  Release\CyGameTextMgrInterface.obj  Release\CyGlobalContext.obj  Release\CyGlobalContextInterface1.obj  Release\CyGlobalContextInterface2.obj  Release\CyGlobalContextInterface3.obj  Release\CyGlobalContextInterface4.obj  Release\CyHallOfFameInfo.obj  Release\CyHallOfFameInterface.obj  Release\CyInfoInterface1.obj  Release\CyInfoInterface2.obj  Release\CyInfoInterface3.obj  Release\CyMap.obj  Release\CyMapGenerator.obj  Release\CyMapGeneratorInterface.obj  Release\CyMapInterface.obj  Release\CyMessageControl.obj  Release\CyMessageControlInterface.obj  Release\CyPlayer.obj  Release\CyPlayerInterface1.obj  Release\CyPlayerInterface2.obj  Release\CyPlot.obj  Release\CyPlotInterface1.obj  Release\CyRandomInterface.obj  Release\CyReplayInfo.obj  Release\CySelectionGroup.obj  Release\CySelectionGroupInterface.obj  Release\CyStructsInterface1.obj  Release\CyTeam.obj  Release\CyTeamInterface.obj  Release\CyUnit.obj  Release\CyUnitInterface1.obj  Release\FAssert.obj  Release\FDialogTemplate.obj  Release\PlanetValueEventHandler.obj  Release\_precompile.obj Release\CvGameCoreDLL.res
1>   Creating library Release\CvGameCoreDLL.lib and object Release\CvGameCoreDLL.exp
1>CvPlayer.obj : error LNK2019: unresolved external symbol "public: int __thiscall CvCivicInfo::getBonusYieldChanges(int,int)const " (?getBonusYieldChanges@CvCivicInfo@@QBEHHH@Z) referenced in function "protected: void __thiscall CvPlayer::processCivics(enum CivicTypes,int)" (?processCivics@CvPlayer@@IAEXW4CivicTypes@@H@Z)
1>CvTeam.obj : error LNK2019: unresolved external symbol "public: int __thiscall CvBonusInfo::getTechYieldChanges(int,int)const " (?getTechYieldChanges@CvBonusInfo@@QBEHHH@Z) referenced in function "protected: void __thiscall CvTeam::processTech(enum TechTypes,int)" (?processTech@CvTeam@@IAEXW4TechTypes@@H@Z)
1>Release\CvGameCoreDLL.dll : fatal error LNK1120: 2 unresolved externals
1>NMAKE : warning U4010: 'Release\CvGameCoreDLL.dll' : build failed; /K specified, continuing ...
1>NMAKE : warning U4011: 'Release' : not all dependents available; target not built
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
1>Build log was saved at "file://c:\Users\Martin\Desktop\CIV 4\Civ 4 Kram\03.09.2014 Neue DLL COC\Release\BuildLog.htm"
1>CvGameCoreDLL - 4 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
The compiler runs in two steps, compilation and linking.

Compilation is done on a single cpp file at a time. It can use whatever function you write in included header files, but it will not actually compile anything outside the current cpp file, only refer to it.

Linking is merging all the obj files, which are the compiled cpp files. In other words it takes all the cpp files and glue them together by inserting the references between cpp files.

The error you get is that you refer to CvBonusInfo::getTechYieldChanges() and CvPlayer::processCivics() in one or more cpp files, but the linker can't find those functions in any of the cpp files meaning it has nothing to refer to.

A fix for this would be to make sure those functions exist. It might be due to outdated obj files, in which case rebuilding would solve the problem.
 
Back
Top Bottom