Any further attempt to compile in VC++ .NET?
Announcement
Collapse
No announcement yet.
COMPILE: Getting the source to compile on VS.NET
Collapse
X
-
I keep getting errors about too few template arguments like this:
c:\devel\ctp2\ctp2_code\ai\list-fixed(59): error C2976: 'std::_Bidit' : too few template arguments
After some googling I discovered it appears to be a bug in the VC++ 7.1 compiler.
Does anyone know if there's a workaround?
Comment
-
In case you don't know:
For information and downloads regarding visual studio .net visit: http://msdn.microsoft.com/vstudio/default.aspx
For support: http://support.microsoft.com/default...fh;en-us;vsnet
More links in Microsoft's site.
If you find no answer to the problem in question simply email them.
It might prove to be a rather simple fix after all.
Comment
-
OK, I played around with .NET at uni. So far I was able to compile the mapplugins, but wasn't able to compile, dbgen.exe and the debug *.exe.
As I don't have administrator rights I had to replace all the appearance of CDKDIR again in all the *.dsp files first, then I had to convert the VC 6 dsw file to a .NET solution, note that you have to replace the CDKDIR refferences first otherwise you still have some refferences in .NET files.
Then I had to add the include stuff I did what Mr Ogre suggested in the other thread:
MAKE SURE THE INCLUDE PATHS FOR DIRECTX AND DXMEDIA COME FIRST IN YOUR SETTINGS. That is very important, especially for DirectX. If you don't do this step, you will get the wrong version of ddraw.h, the one that's included with VC++ 6.0 is horribly outdated. Go to Tools->Options->Directories, Include Files, and put C:\DXSDK\Include at the top of the list, and just under it, add c:\DXMedia\include and then c:\DXMedia\classes\base. That assumes you installed them to DXSDK and DXMedia.
Copy the libraries into the ctp2 libs folder:
copy c:\dxsdk\lib\*.lib (ctp2_src)\libs\directx\lib
copy c:\dxmedia\lib\*.lib (ctp2_src)\libs\dxmedia\lib
I added under as first directory: Show directories for Executable file
Z:\RAID\CTP2\ctp2source\bin
That's the directory of the binaries like bison or flex.
Under include files:
Z:\RAID\CTP2\DXSDK\include
Z:\RAID\CTP2\DXMedia\classes\base
Z:\RAID\CTP2\DXMedia\include
The stuff for direectX and direct media.
And under Libary files well nothing and I thought I put there the libaries, however I copied like Mr Ogre the libary stuff.
And then I changed in Project->Properties->Linker->Advanced Target Machine from MachineX86 (/MACHINE:X86) to Not Set.
I think this should be done but so far I wasn't able to test it whether this has any effect, because I got these error messages:
Code:------ Build started: Project: dbgen, Configuration: Debug Win32 ------ Performing Custom Build Step "
", line 1: premature EOF /cygdrive/z/Raid/CTP2/ctp2source/bin/flex: could not create z:\Raid\Ctp2\ctp2source\ctp2_code\gs\dbgen"lex.yy.c z:RaidCtp2ctp2sourcectp2_codegsdbgenctpdb.l Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step" Build log was saved at "file://z:\Raid\Ctp2\ctp2source\ctp2_code\gs\dbgen\Debug\BuildLog.htm" dbgen - 1 error(s), 0 warning(s)
-MartinCiv2 military advisor: "No complaints, Sir!"
Comment
-
Comment