Installing and using the SDK

LINK : warning LNK4089: all references to 'KERNEL32.dll' discarded by /OPT:REF

It's a harmless warning. There's a way to make the compiler ignore this by putting /IGNORE:4089 somewhere in the linker, I haven't messed with that yet.

I've compiled over 100 .dll's using Visual C++ 2005 Express Edition and Maian's instructions. Wonderful to use a Microsoft product to work in the code.
 
every cpp compile gives:
"
cl : Command line warning D4002 : ignoring unknown option '/EHS'
cl : Command line warning D4002 : ignoring unknown option '/EHC'
cl : Command line warning D4024 : unrecognized source file type 'EHsc', object file assumed
cl : Command line warning D4027 : source file 'EHsc' ignored
"
and setting "build target" to 'final release' does not help it.
and it gives the final error of
"C1067: Compiler limit : debug information module size exceeded"

Found the reason, messed up some parts of step 8 in the first post so i wasnt even running all the changed configs.
 
Hello All!

I am getting that annoying fatal LNKerror 1181: cannot open input file 'release/cvgamecoredll.pdb'...and I have gone in to project----build in an attempt to get it to final release. There is no option up there to do it, only the "build target" dropdown menu at the top, which I have on final release.

But I keep getting the error.

Any advice?

Thanks in advance
 
I'm getting the following error when I try to compile the script (Even without any changes made to the code):

Line 169
fatal error C1083: Cannot open include file: 'FDataStreamBase.h': No such file or directory

I've tried everything, performed all steps from post 1 in this thread, but nothing works or helps :(
I've been able to compile the v1.61 vanilla SDK. What am I doing wrong? Any help would really be appreciated!!

CyberShy / Rho'd Berth

screenshot:
error.jpg
 
im able to compile the _debug in VS 2003 without errors or warnings..but when i load the the game with this dll(modpack visa) it says in CyGame some stuff is not there, which is there actually...100% it doesnt reads the XML properly..as if it doesnt load the DLL at all and uses the default civilization DLL..any ideas?

is it safe to use the Zlib 1.2.3 to compile instead of the 1.22 which firaxis is using btw?
 
Hey all.

I'm using VS 2003. Previously, I was able to get a good debug build. However, I lost the project files that I used to get them. Now, I've forgotten what it was I needed to change from the default to get a good build.

Anyone who's using VS 2003 and can get a debug build working think they can post their Compile and Linker command line options so I can compare?

I'm using v1.61 of Vanilla.

Thanks!

Edit: Nevermind. I found it here...
http://forums.civfanatics.com/showpost.php?p=4056798&postcount=160
 
I got this fatal error of windows.h i redid step 6 and nothing happened HELPPPP:confused:

That file (windows.h) should exist in your 'C:\Program Files\Microsoft Platform SDK\Include' directory. I would check to verify that it does. It is doesn't then you may need to reinstall the platform SDK.

If you do have then your right that step 6 is where you should point to it. You may want to recheck it.
 
I have been trying to do step 7:
Open \CvGameCoreDLL\CvGameCoreDLL.vcproj in CodeBlocks.

Unfortunatly I have been unable to find the relevant file. Does anyone know where it is?
 
Ah, hooking up a new computer to play the game with. Now on with the questions.

Where is the project file? It should be in the folder the SDK for CivIV was put in, but in Codeblocks you open that Project File by using the "Project" command on top, and the subcommand on the menu of "Import" a "Microsoft Visual Studio Project" or something similiar to that. It is not a C++ Project, persay, I think, but try that menu item I listed. Then on that same menu down second from bottom is a "Build Project" or something command there also, make sure that your Toolkit is set up there as it was in the Settings Command of Codeblocks, and use "Final Release" instead of Debug, because the file for the debug file gets too large for the Compiler and since it is the Toolkit perhaps it just does not work as well as a full version of Visual Studio .NET 2003 full version. Afterall the Toolkit is only the Compiler, and that also probably is stripped-down a little perhaps.

Also on the next command which is "Build" then you also have Compiler Options down on the bottom of that sub-menu, and also "Properties" which may be something although I do not exactly remember on the "Projects" menu item. That is where you reset the Toolkit and Open up the Visual Studio Project file which should be also in the SDK you downloaded in the folder you opened it or installed it too. Then the rest of all of that, and the Platform SDK of August 2005 that should be downloaded from Microsoft, or maybe that is for something else. What else would it be for? Must be used, I think, since the Direct X 9 SDK is another download for Visual Studio NET 2002. Well, back to getting software on the new computer, but the game, Civ IV and the patch are already on, except for Warlords and its patch. I got work to do, I guess.
:D
 
I receive 615 warnings about sprintf which should be sprintf_s and 1 error with Visual Studio 2005.

"\cvgamecoredll\boost-1.32.0\include\boost\python\data_members.hpp(277) : error C2665: 'boost::python::detail::make_getter' : none of the 3 overloads could convert all the argument types"

Anyone got a clue how I can fix this one? I didn't change anything in the code yet, just disabling read-only on every file and converting the project from VS2003 to VS2005.
 
@strategyonly, maybe the file is hidden or a corrupted download? I have the file, so...
 
@strategyonly, maybe the file is hidden or a corrupted download? I have the file, so...

OK i see it, i opened the complier itself and not thinking of going to the file itself first then use the complier DUH!!!
 
I receive 615 warnings about sprintf which should be sprintf_s and 1 error with Visual Studio 2005.

"\cvgamecoredll\boost-1.32.0\include\boost\python\data_members.hpp(277) : error C2665: 'boost::python::detail::make_getter' : none of the 3 overloads could convert all the argument types"

Anyone got a clue how I can fix this one? I didn't change anything in the code yet, just disabling read-only on every file and converting the project from VS2003 to VS2005.

Any ideas?
 
When I open the gamecoreproject in visual studio there's a popup saying it's under sourcecontrol but I don't have a source control provider installed on my system. Did I miss anything vital here?
Btw I created a new dll without problems but is this sourcecontrol provider important later on if I start rebuilding after changes? Or is this just essential when working in networks with other like the Firaxians probably do?:confused:
Not entirely sure what I got myself into right now:mischief:
 
Don't worry about that surce control thing. As long as you can compile everything should be allright.

Matze
 
I need some help. :)

Part of the problem, I think, is that there are newer versions. So, the instructions don't match up. e.g., MS Platorm SDK has R2 now. And, Codeblocks is new... the linker screens aren't even in the same place and there's no Final Release screen at all. Now, I can figure things out, but when things don't match up, ultimately I'm guessing.

Here's where I am now. In Codeblocks, doing a Build of CvGameCoreDLL. I have the folder on my desktop.

First, it couldn't find some .h files. I went into the search directories screen (compiler and linker both) and manually added the last two. That fixed it. (See attached images)

Now, however, it's giving CvString syntax errors. (See attached.) That probably means I still am missing some libraries, but beats me where. Any ideas, anyone?

Thanks in advance.

Wodan
Compiler library screen shot
Linker library screen shot
Error messages
 
Back
Top Bottom