AbsintheRed
Deity
I'm trying a new setup with Visual Studio 2012
Does anyone else using it? Should I stick with VS 2010 or 2008?
Does anyone else using it? Should I stick with VS 2010 or 2008?
The included project file is for 2010, but it will automatically upgrade if opened by a newer version. The only issue in this regard is that it will not downgrade, meaning if I go ahead and add some brand new version, everybody would have to install the newest. Back when I picked 2010, it was because it was like 10% of the size of the new one. However Microsoft has since removed the MSVC++ only download for 2010 (well 2010 entirely) and the new argument is I can't be bothered to upgrade
I would highly recommend reading this thread when starting a new mod: http://forums.civfanatics.com/showthread.php?t=564062
It's a small easy change when starting, but painful later on and it could save a whole lot of time and problems.
When something like that happens, copy paste the errors into the forum inside a spoiler. At least do it with the first errors as they are usually the key to what went wrong.I'm having troubles with compilling under Visual Studio 2012
Your project file updated without any problems, but the compiling adds 100+ errors even with vanilla BtS c++ files
That's unlikely because it works for other people. Also VS 201x is used to make it easier for humans to see what goes on. What happens while compiling is that it actually generates command line code, which calls VS 2003. It has to be that one because if exe and dll are compiled with different versions of the compiler, odd stuff can happen.Is it possible that it's because VS 2012 got incompatible with the old toolkit or old sdk?
You need to install VC 2003. I'm not 100% sure about the SDK because in theory you need it, but I tried having problems installing it and I just ignored it and it worked anywayThat would be my first guess, as I still tried to use the ones linked in Asaf's thread
You need to install VC 2003. I'm not 100% sure about the SDK because in theory you need it, but I tried having problems installing it and I just ignored it and it worked anyway
You need to go through step 1 on this page:
http://modiki.civfanatics.com/index.php?title=How_to_Install_the_SDK
Naturally you should skip the makefile, but you can't do without the rest.
SOURCE_DIR = ..\CvGameCoreDLL
Try removing the old project files, particularly CvGameCoreDLL.rc. It is a known cause of problems.
In fact what I usually do is to make a project files folder. Here I use Makefile.project to setThis keeps source code and project files apart and if you only add the files from Makefile 2.5, then it should be clean of relics like the .rc file. The source dir could then only contain .cpp .h and .inl. If it complains about the CvText... whateever, remove that file. It's pointless to leave the file it can't compile anyway.Code:SOURCE_DIR = ..\CvGameCoreDLL
I can't really tell without knowing which warnings you get. All I get is one warning when I link. That one happened in vanilla as well. Anything else would be new.Alright, managed to sort it out with VS2012 too.
Still getting the pragma warnings though.
Can you confirm they are harmless?
I wrote the makefile to cover my own needs. Since it is much better than 1.0, I decided on making this thread. I didn't change anything in the makefile to make it distributable or anything like that. To be honest I still think the makefile sucks, but that is due to limitations in nmake and MSVC. If I had known what I know now, I would have started on a new makefile using GNU make (the one linux use) as it is far superior and would have saved a lot of frustrations. However right now it's like if it ain't broke, don't fix it.Anyway, thanks for the efforts of building the makefile
If it's the one with the warnings, then sure.Do you want the logs with the old SDK?
CFLAGS = /wdC4068
Try removing the old project files, particularly CvGameCoreDLL.rc. It is a known cause of problems.
In fact what I usually do is to make a project files folder. Here I use Makefile.project to setThis keeps source code and project files apart and if you only add the files from Makefile 2.5, then it should be clean of relics like the .rc file. The source dir could then only contain .cpp .h and .inl. If it complains about the CvText... whateever, remove that file. It's pointless to leave the file it can't compile anyway.Code:SOURCE_DIR = ..\CvGameCoreDLL
You select "add existing item" and then select all the files in the source directory just like you would do when adding files from the same directory. Granted if you already added the files to the project and then moved the project files, it will be a problem and you have to remove the files from the project and then add them again.One additional thing to this:
If I set the Makefile.project to that folder, VS won't find the project files for displaying them
Still looking for them in the main directory.
You select "add existing item" and then select all the files in the source directory just like you would do when adding files from the same directory. Granted if you already added the files to the project and then moved the project files, it will be a problem and you have to remove the files from the project and then add them again.
In that case you know more than MSVC does. It just tries to execute the compiled file even if it is a dll file.I realize that a .dll is not an executable
C:\....\Civ4BeyondSword.exe mod=\"mymod"