Okay, the Getting the source to compile thread is great, but it is starting to overflow with different kinds of information. I think it would be good to keep different discussions separate, and since that other thread has pretty much gotten to the point of taking care of CivSound, I thought a new thread for us VS.NET users is in order. So, the progress I have achieved so far is this:
The conversion from VS6.0 files to .NET was successful, and I had no problems with the quotes as people in the other thread have said. The problems I did have were as follows:
-----------------
I was thinking that this would be a good start for sort of an FAQ, or step-by-step instructions, on how to get the thing to compile on .NET. So, if anyone has made more progress than I have, please post here, and I will update the list above.
The conversion from VS6.0 files to .NET was successful, and I had no problems with the quotes as people in the other thread have said. The problems I did have were as follows:
- Custom Build Step couldn't find byacc and bison.
Solution: Put the binaries into some path that does not contain spaces in it. - byacc couldn't find the source file.
Solution: Put the source files into some path that doesn't contain spaces in it. - byacc: f - cannot open "/tmp/yacc.aa####"
Solution: Create a C:\tmp directory (or replace the C: drive with whichever one you have your byacc on).
Alternative Solution: Create an environment variable "TMPDIR" that points to a temp directory (e.g.: "%systemroot%\TEMP").
(Atahualpa) - The definition of dbgallocator in c3debugstl.h doesn't match what's required for the new STL.
Solution: Some template defintions now require the additon of the typename keyword to compile.
(RalphTrickey) - Some of the math functions (sqrt, ceil, floor) now require floats instead of integers.
Solution: Cast them to double. I think that I remember one that had ceiling of a number divided by 2. This will always return the floor instead. These should be fixed and documeted for anyone working on v6.
(RalphTrickey) - The definition of dbgallocator in c3debugstl.h doesn't match what's required for the new STL.
Solution: For now, do a global search and replace of dbgallocator< with std::allocator<
(RalphTrickey) - Ambiguous overload.
Solution: The line
aui_TextBase((MBCHAR *)NULL, (uint32)0)
needs to be
aui_TextBase((const MBCHAR *)NULL, (uint32)0)
(RalphTrickey) - std::_MAX has changed.
Solution: Replace with max
(RalphTrickey)
-----------------
I was thinking that this would be a good start for sort of an FAQ, or step-by-step instructions, on how to get the thing to compile on .NET. So, if anyone has made more progress than I have, please post here, and I will update the list above.
Comment