[SDK] Using Microsoft Visual C++ 2005 Express Edition

Refar's makefile doesn't work with 3.19 as some new source files were added with the patch. You said Refar's guide with a 3.19 makefile; where did you get the makefile from, and is that exactly what you meant?

Is that the entire output of the build? The U1077 error is saying that cl.exe returned error code 0x01. Unfortunately I am having no luck finding a description of that error code. It looks like a generic "failure" error code. I would have expected cl.exe to output some message before nmake.
 
I'm not using Refar's makefile, i'm using the one by i think glider1 that the download for refar's guide has a link to.

There isn't much more to the build output, but here's the whole thing:
Code:
1>------ Build started: Project: CvGameCoreDLL, Configuration: Final_Release Win32 ------
1>Performing Makefile project actions
1>Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1> "C:/Program Files (x86)/Microsoft Visual C++ Toolkit 2003/bin/cl.exe" /nologo  /MD /Gd /G7 /GR /O2 /W3 /EHsc /DWIN32 /DNDEBUG /D_WINDOWS /D_USRDLL /DCVGAMECOREDLL_EXPORTS /DFINAL_RELEASE   /IBoost-1.32.0/include /IPython24/include /I"C:/Program Files (x86)/Microsoft Visual C++ Toolkit 2003/include" /I"C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include" /c CvArea.cpp /FoFinal_Release/CvArea.obj
1>'C:/Program' is not recognized as an internal or external command,
1>operable program or batch file.
1>NMAKE : fatal error U1077: '"C:/Program Files (x86)/Microsoft Visual C++ Toolkit 2003/bin/cl.exe' : return code '0x1'
1>Stop.
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
1>Build log was saved at "file://c:\Users\Corwin\Documents\Civilization\CvGameCoreDLL\Final_Release\BuildLog.htm"
1>CvGameCoreDLL - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
Ah, here's the error:

Code:
1>'C:/Program' is not recognized as an internal or external command,
1>operable program or batch file.

Notice it thinks 'C:/Program' is the entire program name. You need to have ""s around a path somewhere. For example, my makefile defines the paths to the PSDK and TOOLKIT:

Code:
TOOLKIT = C:\Coding\Microsoft Visual C++ Toolkit 2003
PSDK = C:\Program Files\Microsoft Platform SDK

When I define the macros for running the compiler and linker, however, I must use ""s:

Code:
CPP = "$(TOOLKIT)/bin/cl.exe"
LINK = "$(TOOLKIT)/bin/link.exe"
 
So which lines should I add ""s to? Should it look like this:
Code:
TOOLKIT= "C:\Program Files (x86)\Microsoft Visual C++ Toolkit 2003"
PSDK= "C:\Program Files\Microsoft SDKs\Windows\v6.0A"
in the makefile?
 
No, you must add them to the CPP and LINK lines as I did in my post. Find all places where PSDK and TOOLKIT are used in the makefile and add ""s around the final path. You cannot have quotes around only part of the path which is why you cannot put the quotes on the lines you posted.
 
I don't see those lines that you showed in your post. There are some similar lines:
Code:
Debug_CPP="$(TOOLKIT)/bin/cl.exe"
Debug_LD="$(TOOLKIT)/bin/link.exe"
Debug_LIB="$(TOOLKIT)/bin/link.exe"
and
Code:
Final_Release_CPP="$(TOOLKIT)/bin/cl.exe"
Final_Release_LD="$(TOOLKIT)/bin/link.exe"
but these already have quotes.
 
Yes, those look fine. Search for ".exe" without quotes elsewhere and see if any don't have quotes around them. Somewhere was a path to a command that nmake was running that had spaces in the path without quotes to protect them.
 
Boy, this is really confusing me. There were 2 places with .exe with no quotes ('Debug_RESCOMP=rc.exe' and 'Final_Release_RESCOMP=rc.exe'), but I still get the same error in the output after I changed them. Could you upload the makefile you use? would that work?
 
Those commands aren't even being used, and it looks like they didn't have paths with spaces so ""s weren't necessary there. The other places you need quotes are when specifying include paths with /I and library paths with /LIBPATH:

Code:
INCS = /I"CxImage/general" /I"CxImage/jpeg" /I"$(BOOST)/include" /I"$(PYTHON)/include" /I"$(TOOLKIT)/include" /I"$(PSDK)/Include"
LIBDIRS = /LIBPATH:"$(PYTHON)/libs" /LIBPATH:"$(BOOST)/libs/" /LIBPATH:"$(PSDK)/Lib" /LIBPATH:"$(TOOLKIT)/lib"

My makefile is for BULL and has files you won't have so it won't work. However, you are welcome to check it out for comparison.
 
The only instances of /I and /LIBPATH: already had quotes around their paths, as far as I could see.

Could the problem be somewhere else besides the makefile, because wouldn't a lot of other people be having this same problem?
 
I wonder if it has something to do with running on a 64-bit platform (I notice the x86 PF folder).

Looking back at your build output, I can see it has quotes around the call to cl.exe, yet for some reason Windows is not seeing them and taking just "C:/Program" as the name of the command.

:confused:
 
That must have been it-- I have a 32-bit system. I took out the x86 part and now it works!!:woohoo: Thank you for noticing that! :D
 
Another question: after it compiled, there were a whole ton of .obj files under the Final_Release folder as well as the CvGameCoreDLL.dll. Are all these other files necessary for anything? Do I need to keep them?
 
Each .cpp files gets compiled using cl.exe into a .obj file. Once they are all compiled, link.exe produces the .dll from the .obj files. If you change a single .cpp file, only its matching .obj file and the .dll need to be rebuilt. If you delete the .obj files, all the .cpp files must be compiled again which can take some time on slower systems.

As xienwolf said, if you change any header (.h) files, make sure to remove all the .obj files and do a full rebuild (called a clean build) from scratch.
 
Well well, I am here to report some good news and bad news.

The good news is that I recently built a new machine and have been looking forward to both playing and modding Civ 4 more often... I installed Windows 7 and I love it.

The bad news is that Windows 7 does not support Visual Studio .NET 2003 !!!

There are workarounds from Microsoft available, and I will be playing with this and attempting to get VS 2003 to work.

More later.
 
I'm not sure if this is what you meant, but you do not want Visual Studio 2003. Instead you need Visual C++ Tookit 2003. You can use the latest Visual Studio to write your code; it just won't be able to compile it. For that you use VC++ Toolkit 2003.
 
I followed the guide exactly (at least, I think I did), using VC++ 2008. The compiler works fine until I get to CvDllPythonEvents.h and CvDllPythonEvents.cpp, where it throws 104 errors and 9 warnings.

And testing it using the command line doesn't work either.

This is unmodded BTS 3.19's DLL... I'm using glider1's makefile.

Spoiler :
Code:
1>CvDLLPythonEvents.cpp
1>c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CvDllPythonEvents.h(52) : error C2061: syntax error : identifier 'CvSelectionGroup'
1>c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CvDllPythonEvents.h(82) : error C2061: syntax error : identifier 'CorporationTypes'
1>c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CvDllPythonEvents.h(83) : error C2061: syntax error : identifier 'CorporationTypes'
1>c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CvDllPythonEvents.h(84) : error C2061: syntax error : identifier 'CorporationTypes'
1>CvDllPythonEvents.cpp(11) : error C2065: 'gDLL' : undeclared identifier
1>CvDllPythonEvents.cpp(11) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(11) : error C2227: left of '->isInitialized' must point to class/struct/union
1>CvDllPythonEvents.cpp(16) : error C2065: 'GC' : undeclared identifier
1>CvDllPythonEvents.cpp(16) : error C2228: left of '.getGameINLINE' must have class/struct/union type
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(16) : error C2228: left of '.isDebugMode' must have class/struct/union type
1>CvDllPythonEvents.cpp(18) : error C2227: left of '->altKey' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(18) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(19) : error C2227: left of '->ctrlKey' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(19) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(20) : error C2227: left of '->shiftKey' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(20) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(21) : error C2227: left of '->getChtLvl' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(21) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(24) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(24) : error C2227: left of '->callFunction' must point to class/struct/union
1>CvDllPythonEvents.cpp(24) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(34) : error C2227: left of '->getEngineIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(34) : error C2227: left of '->pickPlot' must point to class/struct/union
1>CvDllPythonEvents.cpp(34) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(41) : error C2027: use of undefined type 'CvPlot'
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CvStructs.h(150) : see declaration of 'CvPlot'
1>CvDllPythonEvents.cpp(41) : error C2227: left of '->getX' must point to class/struct/union
1>CvDllPythonEvents.cpp(42) : error C2027: use of undefined type 'CvPlot'
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CvStructs.h(150) : see declaration of 'CvPlot'
1>CvDllPythonEvents.cpp(42) : error C2227: left of '->getY' must point to class/struct/union
1>CvDllPythonEvents.cpp(54) : error C2227: left of '->getEngineIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(54) : error C2227: left of '->pickPlot' must point to class/struct/union
1>CvDllPythonEvents.cpp(54) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(60) : error C2027: use of undefined type 'CvPlot'
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CvStructs.h(150) : see declaration of 'CvPlot'
1>CvDllPythonEvents.cpp(60) : error C2227: left of '->getX' must point to class/struct/union
1>CvDllPythonEvents.cpp(61) : error C2027: use of undefined type 'CvPlot'
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CvStructs.h(150) : see declaration of 'CvPlot'
1>CvDllPythonEvents.cpp(61) : error C2227: left of '->getY' must point to class/struct/union
1>CvDllPythonEvents.cpp(66) : error C2227: left of '->getInterfaceIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(66) : error C2227: left of '->getInterfaceScreenIdsForInput' must point to class/struct/union
1>CvDllPythonEvents.cpp(66) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(103) : error C2228: left of '.getUSE_ON_UPDATE_CALLBACK' must have class/struct/union type
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(103) : error C3861: 'GC': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(221) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(221) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(221) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(224) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(224) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(224) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(291) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(291) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(291) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(307) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(307) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(307) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(308) : error C2514: 'CyCity' : class has no constructors
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(309) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(309) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(309) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(314) : warning C4150: deletion of pointer to incomplete type 'CyCity'; no destructor called
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(326) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(326) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(326) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(342) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(342) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(342) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(343) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(343) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(343) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(359) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(359) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(359) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(374) : error C2514: 'CyCity' : class has no constructors
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(375) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(375) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(375) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(378) : warning C4150: deletion of pointer to incomplete type 'CyCity'; no destructor called
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(389) : error C2514: 'CyCity' : class has no constructors
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(390) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(390) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(390) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(394) : warning C4150: deletion of pointer to incomplete type 'CyCity'; no destructor called
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(407) : error C2514: 'CyCity' : class has no constructors
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(408) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(408) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(408) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(413) : warning C4150: deletion of pointer to incomplete type 'CyCity'; no destructor called
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(425) : error C2514: 'CyCity' : class has no constructors
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(426) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(426) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(426) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(429) : warning C4150: deletion of pointer to incomplete type 'CyCity'; no destructor called
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(440) : error C2514: 'CyCity' : class has no constructors
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(441) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(441) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(441) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(443) : warning C4150: deletion of pointer to incomplete type 'CyCity'; no destructor called
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(454) : error C2514: 'CyCity' : class has no constructors
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(455) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(455) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(455) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(460) : warning C4150: deletion of pointer to incomplete type 'CyCity'; no destructor called
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(471) : error C2514: 'CyCity' : class has no constructors
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(472) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(472) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(472) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(477) : warning C4150: deletion of pointer to incomplete type 'CyCity'; no destructor called
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(488) : error C2514: 'CyCity' : class has no constructors
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(489) : error C2227: left of '->getPythonIFace' must point to class/struct/union
1>        type is ''unknown-type''
1>CvDllPythonEvents.cpp(489) : error C2227: left of '->makePythonObject' must point to class/struct/union
1>CvDllPythonEvents.cpp(489) : error C3861: 'gDLL': identifier not found, even with argument-dependent lookup
1>CvDllPythonEvents.cpp(494) : warning C4150: deletion of pointer to incomplete type 'CyCity'; no destructor called
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(505) : error C2514: 'CyCity' : class has no constructors
1>        c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\CyUnit.h(11) : see declaration of 'CyCity'
1>CvDllPythonEvents.cpp(505) : fatal error C1003: error count exceeds 100; stopping compilation
1>NMAKE : fatal error U1077: '"C:/Program Files/Microsoft Visual C++ Toolkit 2003/bin/cl.exe"' : return code '0x2'
1>Stop.
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
1>Build log was saved at "file://c:\Documents and Settings\TC01\Desktop\My CIV4 Mods\SDK Stuff\CvGameCoreDLL\Final_Release\BuildLog.htm"
1>CvGameCoreDLL - 104 error(s), 9 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


As I said, I didn't touch any of the SDK files before compilation... but perhaps if someone could attach BTS 3.19 original versions of CvDllPythonEvents.cpp and CvDllPythonEvents.h, I could test this?
 
Here you go. You ought to have these files in \CIV\Beyond the Sword\CvGameCoreDLL\, unless you've deleted that folder. :)
 
Here you go. You ought to have these files in \CIV\Beyond the Sword\CvGameCoreDLL\, unless you've deleted that folder. :)

I do still have those files, but I was afraid that I might have accidentally altered them somehow.

Thanks for the files, but they didn't fix it- I still get the compilation errors. Can anyone help?
 
Back
Top Bottom