Game Development Community

Compiling with Windows SDK 6.0?

by Alex Rice · in Torque Game Builder · 03/26/2007 (10:58 am) · 9 replies

Does anyone have any advice or feedback about how would one go about compiling TGB source * with the Windows SDK 6.0 **, which is the latest free compiler for Microsoft. It works on Windows XP as well as Vista. Thanks in advance, Alex

* assuming you have source license, of course.
** this is the latest compiler, it's not the same as Visual C++6.0

windows sdk setup.exe

#1
03/26/2007 (11:15 am)
It's not a compiler, but a SDK. Just wanted to note that so that others did not get confused reading your message. It works with 2005 Pro/Express according to the documentation. I'm not sure what may have to change in the Win32 platform layer (if anything).
#2
03/26/2007 (11:26 am)
David, you are incorrect- the install includes the MS C/C++ compiler. if you run the setup.exe you can see it includes the compiler, cross-compilers, as well as docs and the platform SDK. thanks
#3
03/26/2007 (11:28 am)
It also includes nmake- which i assume is the key getting TGB to compile. However i've never used nmake or makefiles, outside of a unix-ey standard "Make" environment using GCC.
#4
03/26/2007 (11:55 am)
I might note, Visual Studio is not a compiler -- it's just an IDE -- the Compiler for C# is "csc" for example, and for C++ it's "cl" -- MS's SDK's usually ship with the latest version of the compiler, and the IDE can then be reconfigured to build with this new compiler --


The best suggestion I could give for getting TGB to compile under the latest headers/libraries with the latest compiler would be ... try it ... see what it errors on ... and fix them, one by one ... until it works, without problems ...

and, I'm not aware of anyone going through this process yet ... so your most likely on your own :)

@Alex, in regards to nmake, you should be able to turn around and point VS 2k5 at the latest 'cl.exe' that ships with the 6.0 SDK and just build like you would normally, through the solution --
#5
03/26/2007 (1:06 pm)
Interesting. I know that the .NET runtime shipped with the command line tools, but I didn't think that the SDK's shipped with it. Usually it was a separate piece of the Platform SDK download process.

Thanks for clearing that up.
#6
03/26/2007 (1:35 pm)
@David, I think they are slowly changing that process ... they didn't used to ship the C++ compiler for free ... but MS is, last I heard, attempting to change the way they do things ... to try and bring some more development over to the "MS Side" (sounds like "Darkside" to me)
#7
03/26/2007 (1:55 pm)
The new Windows SDK installer wizard is actually pretty nice - it is free and only downloads the components you select.

Much nicer than the installer for Visual Studio 2003 *&^$#!!! which totally corrupted itself and failed to un-install or repair itself :-(

One tip about the Windows SDK: the option that says "Vista Libraries and headers" is actually, as far as I can tell, what used to be named the Platform SDK (windows.h etc) . So even on Windows XP you need to say YES to the "Vista Libraries and headers" option to get a working compiler.

If i am able to get TGB built this way- i will post a note here. I am using another tool that requires a C compiler, and am using the Windows SDK for that, so i figured i could keep my system clean and try to compile TGB with it as well
#8
03/26/2007 (2:04 pm)
Nice! Looking forward to hearing your progress!
#9
09/04/2007 (6:46 am)
Out of interest, the Windows 6 SDK installed and put itself in VC++ Express 2008 beta 2. So I can tell you that they've got rid of some of the windows functions that are in the source. I just told it to revert to my already installed PlatformSDK. Good luck trying to find what to use instead. :)

-- Ricky