Resource compiler problem

Fanatic Demon

Student in Wizardry
Joined
Aug 6, 2004
Messages
404
Location
The Netherlands
I installed everyting according to the C++ Tutorial and when I try to make a Final build I get the following output:
Code:
Project   : CvGameCoreDLL
Compiler  : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\CvGameCoreDLL2\
--------------------------------------------------------------------------------
Switching to target: Final Release
CvArea.cpp
CvArtFileMgr.cpp
CvCity.cpp
CvCityAI.cpp
CvDLLButtonPopup.cpp
CvDLLEntity.cpp
CvDLLPython.cpp
CvDLLWidgetData.cpp
CvDeal.cpp
CvDiploParameters.cpp
CvFractal.cpp
CvGame.cpp
CvGameAI.cpp
CvGameCoreDLL.cpp
Execution of 'rc.exe    -fo"Final Release\CvGameCoreDLL.res" CvGameCoreDLL.rc' in 'C:\Program Files\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\CvGameCoreDLL2' failed.
would could be the cause of this rc.exe problem? :confused:
 
I moved rc.exe + rcdll.dll to my bin directory, and now i'm getting the following error:
Code:
Switching to target: Final Release
CvGameCoreDLL.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.
Process terminated with status 1 (0 minutes, 1 seconds)
1 errors, 0 warnings
where am I supposed to get the 'afxres.h' file from? :confused:
 
dammit, now I'am getting a linking error:

Code:
Linking dynamic library: ..\Beyond the Sword\Assets\CvGameCoreDLL.dll
LINK : fatal error LNK1158: cannot run 'cvtres.exe'
LINK : fatal error LNK1141: failure during build of exports file
Process terminated with status 1 (7 minutes, 9 seconds)

now where am I going to get cvtres.exe (Microsoft® Resource File To COFF Object Conversion Utility), the SDK only includes a win64 version, which I don't have :confused:
 
I tried the cvtres.exe in my C:\Program Files\Microsoft Platform SDK\Bin\win64 but now I'am getting the following linking error:
Code:
Switching to target: Final Release
Linking dynamic library: ..\Beyond the Sword\Assets\CvGameCoreDLL.dll
Final Release\CvGameCoreDLL.res : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
LINK : fatal error LNK1141: failure during build of exports file
Process terminated with status 1 (0 minutes, 42 seconds)
2 errors, 0 warnings
Now what the hell does error LNK1123 mean :confused:
 
I finally did it. It turned out I could simply remove the resource file from the project in BtS
Code:
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
Process terminated with status 0 (8 minutes, 16 seconds)
0 errors, 0 warnings
I think the tutorial should be update, this could have saved my time :mad:
 
Congrats Demon on figuring this out. I'm still wrestling with making my files compile. I get this error:

Error LINK2001: Unresolved external symbol

Not quite sure what to do to fix this. Spent past 3 days trying to fix it.
 
Fanatic Demon, I get this error, but I do not see my .res file anywhere in the /finalrelease folder. Therefore I cannot delete it

do you have any thoughts?
 
Top Bottom