Compiler choices: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Image:Vsexpress logo.png|right|Visual Studio Express]]
[[Image:Vsexpress logo.png|right|Visual Studio Express logo]]


The Source SDK is compatible with [http://msdn.microsoft.com/howtobuy/visualc/default.aspx Visual Studio 2005] and [http://www.microsoft.com/express/2005/download/default.aspx Visual C++ Express 2005] (The 2008s compile in release mode but not debug). The server library can be compiled for Linux with [http://gcc.gnu.org/ gcc].
The Source SDK is compatible with [http://msdn.microsoft.com/howtobuy/visualc/default.aspx Visual Studio 2005] and [http://www.microsoft.com/express/2005/download/default.aspx Visual C++ Express 2005] (The 2008s compile in release mode but not debug). The server library can be compiled for Linux with [http://gcc.gnu.org/ gcc].
Line 11: Line 11:
*VCE2005 users need to download the [http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&DisplayLang=en Windows SDK] (Windows 2000 users: [http://www.microsoft.com/downloads/details.aspx?familyid=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en Platform SDK]). Visual Studio and VCE2008 users do not.
*VCE2005 users need to download the [http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&DisplayLang=en Windows SDK] (Windows 2000 users: [http://www.microsoft.com/downloads/details.aspx?familyid=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en Platform SDK]). Visual Studio and VCE2008 users do not.
*If you want to create new [[shader]]s, the [http://msdn2.microsoft.com/directx/aa937788.aspx DirectX SDK] is required.
*If you want to create new [[shader]]s, the [http://msdn2.microsoft.com/directx/aa937788.aspx DirectX SDK] is required.
<!-- Commented because C++ Express makes it redundant
== Using other compilers ==
:Q: The thought occurs that if the SDK can be tweaked to compile on an older version of VS, maybe it could also be tweaked to compile using Dev-C++ or another free compiler.  Has anyone ever tried this?  How can I do it? Or is it impossible?
::A: Dev-C++ is an IDE. The default compiler it uses is called [http://www.mingw.org MinGW], which is a Windows port of GCC (the more-or-less standard Linux compiler). Attempts to compile the SDK using MinGW have failed. Getting it to succeed would require a non-trivial amount of work.
Another solution is to use a [http://www.vinoisnotouzo.com/hl2sdk-cmake/ port of the SDK] to [http://www.cmake.org/ CMake]. CMake is a cross-platform makefile and project file generator, and will generate Visual Studio project files for 6.0 2002 and 2003, and also NMake makefiles for the Visual C++ Toolkit. It can also generate GNUmake files for compiling under GCC. It may also assist any porting to MinGW.-->


[[Category:Source_SDK_FAQ]]
[[Category:Source_SDK_FAQ]]
[[Category:Programming]]
[[Category:Programming]]

Revision as of 04:48, 8 March 2008

The Source SDK is compatible with Visual Studio 2005 and Visual C++ Express 2005 (The 2008s compile in release mode but not debug). The server library can be compiled for Linux with gcc.

For most, Visual C++ Express 2005 is the best option. It provides all of the functionality needed to program and build a mod, and most of Microsoft's industry-standard toolset, for free.

Most programming tutorials on this website assume you are using Visual Studio.

Additional SDKs