Hi everyone,
I tried to build my CivGameCoreDLL following Kael's tutorial and using CodeBlocks.
When doing this, I'm getting four "unresolved external symbol" errors (listed below). Now I understand this message as the linker needing some more cpp or h files. But which ones are needed?
E.g., "unresolved external symbol __imp__GetKeyState" sounds like a windows command to me, doesn't it?
Thanks for any help.
###############
...
CyGlobalContextInterface4.cpp
CyHallOfFameInfo.cpp
CyHallOfFameInterface.cpp
CyInfoInterface1.cpp
CyInfoInterface2.cpp
CyInfoInterface3.cpp
CyMap.cpp
CyMapGenerator.cpp
CyMapGeneratorInterface.cpp
CyMapInterface.cpp
CyPlayer.cpp
CyPlayerInterface1.cpp
CyPlayerInterface2.cpp
CyPlot.cpp
CyPlotInterface1.cpp
CyRandomInterface.cpp
CyReplayInfo.cpp
CySelectionGroup.cpp
CySelectionGroupInterface.cpp
CyStructsInterface1.cpp
CyTeam.cpp
CyTeamInterface.cpp
CyUnit.cpp
CyUnitInterface1.cpp
FAssert.cpp
FDialogTemplate.cpp
_precompile.cpp
Linking dynamic library: ..\Beyond the Sword\Assets\CvGameCoreDLL.dll
Creating library ..\Beyond the Sword\Assets\CvGameCoreDLL.lib and object ..\Beyond the Sword\Assets\CvGameCoreDLL.exp
CvDLLWidgetData.obj : error LNK2019: unresolved external symbol __imp__GetKeyState@4 referenced in function "public: void __thiscall CvDLLWidgetData::doResearch(struct CvWidgetDataStruct &)" (?doResearch@CvDLLWidgetData@@QAEXAAUCvWidgetDataStruct@@@Z)
CvGame.obj : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: virtual void __thiscall CvGame::read(class FDataStreamBase *)" (?read@CvGame@@UAEXPAVFDataStreamBase@@@Z)
CvPlayer.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0
CvGameCoreDLL.obj : error LNK2019: unresolved external symbol __imp__timeEndPeriod@4 referenced in function _DllMain@12
CvGameCoreDLL.obj : error LNK2019: unresolved external symbol __imp__timeBeginPeriod@4 referenced in function _DllMain@12
..\Beyond the Sword\Assets\CvGameCoreDLL.dll : fatal error LNK1120: 4 unresolved externals
Process terminated with status 1 (22 minutes, 17 seconds)
6 errors, 0 warnings
################
I tried to build my CivGameCoreDLL following Kael's tutorial and using CodeBlocks.
When doing this, I'm getting four "unresolved external symbol" errors (listed below). Now I understand this message as the linker needing some more cpp or h files. But which ones are needed?
E.g., "unresolved external symbol __imp__GetKeyState" sounds like a windows command to me, doesn't it?
Thanks for any help.
###############
...
CyGlobalContextInterface4.cpp
CyHallOfFameInfo.cpp
CyHallOfFameInterface.cpp
CyInfoInterface1.cpp
CyInfoInterface2.cpp
CyInfoInterface3.cpp
CyMap.cpp
CyMapGenerator.cpp
CyMapGeneratorInterface.cpp
CyMapInterface.cpp
CyPlayer.cpp
CyPlayerInterface1.cpp
CyPlayerInterface2.cpp
CyPlot.cpp
CyPlotInterface1.cpp
CyRandomInterface.cpp
CyReplayInfo.cpp
CySelectionGroup.cpp
CySelectionGroupInterface.cpp
CyStructsInterface1.cpp
CyTeam.cpp
CyTeamInterface.cpp
CyUnit.cpp
CyUnitInterface1.cpp
FAssert.cpp
FDialogTemplate.cpp
_precompile.cpp
Linking dynamic library: ..\Beyond the Sword\Assets\CvGameCoreDLL.dll
Creating library ..\Beyond the Sword\Assets\CvGameCoreDLL.lib and object ..\Beyond the Sword\Assets\CvGameCoreDLL.exp
CvDLLWidgetData.obj : error LNK2019: unresolved external symbol __imp__GetKeyState@4 referenced in function "public: void __thiscall CvDLLWidgetData::doResearch(struct CvWidgetDataStruct &)" (?doResearch@CvDLLWidgetData@@QAEXAAUCvWidgetDataStruct@@@Z)
CvGame.obj : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: virtual void __thiscall CvGame::read(class FDataStreamBase *)" (?read@CvGame@@UAEXPAVFDataStreamBase@@@Z)
CvPlayer.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0
CvGameCoreDLL.obj : error LNK2019: unresolved external symbol __imp__timeEndPeriod@4 referenced in function _DllMain@12
CvGameCoreDLL.obj : error LNK2019: unresolved external symbol __imp__timeBeginPeriod@4 referenced in function _DllMain@12
..\Beyond the Sword\Assets\CvGameCoreDLL.dll : fatal error LNK1120: 4 unresolved externals
Process terminated with status 1 (22 minutes, 17 seconds)
6 errors, 0 warnings
################