Compiler choices: Difference between revisions
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
This solution is, however, commercial and requires you to shell up money to develop a modification for the Source-engine. You can usually get it secondhand for around the price of two or three games. | This solution is, however, commercial and requires you to shell up money to develop a modification for the Source-engine. You can usually get it secondhand for around the price of two or three games. | ||
== Using other compilers == | |||
The SDK can also be compiled under the older Microsoft Visual Studio 2002 product. Most HL1 mods were made using this older version of C++, so if you're a modder, you may already have it installed. If not, VS2002 may be cheaper to buy than VS2003.NET. VS2002 users see [[Compiling under VS2002]]. | The SDK can also be compiled under the older Microsoft Visual Studio 2002 product. Most HL1 mods were made using this older version of C++, so if you're a modder, you may already have it installed. If not, VS2002 may be cheaper to buy than VS2003.NET. VS2002 users see [[Compiling under VS2002]]. | ||
Line 11: | Line 12: | ||
There is an Academic version of VS2003.NET available to students or faculty enrolled in college, which has an MSRP of $99. It IS legal to distribute content created with this version, however if Microsoft find out that you're not a student, they will most likely try to put an end to it. | There is an Academic version of VS2003.NET available to students or faculty enrolled in college, which has an MSRP of $99. It IS legal to distribute content created with this version, however if Microsoft find out that you're not a student, they will most likely try to put an end to it. | ||
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. | |||
Slightly more promising would be using the [http://msdn.microsoft.com/visualc/vctoolkit2003/ Visual C++ Toolkit], which is free and has the Visual C++ compiler and linker. It can't, however, parse Visual Studio solution files, getting around which is also a non-trivial task. The advantage is that getting the SDK working with MinGW requires re-writing a suprisingly large number of sections of code, while the VC++ Toolkit merely needs to have a batch file/makefile written for it. |
Revision as of 17:25, 12 October 2005
The SDK is set up to be compiled with Microsoft Visual C++ .NET 2003 v7.1.
http://msdn.microsoft.com/howtobuy/visualc/default.aspx.
This solution is, however, commercial and requires you to shell up money to develop a modification for the Source-engine. You can usually get it secondhand for around the price of two or three games.
Using other compilers
The SDK can also be compiled under the older Microsoft Visual Studio 2002 product. Most HL1 mods were made using this older version of C++, so if you're a modder, you may already have it installed. If not, VS2002 may be cheaper to buy than VS2003.NET. VS2002 users see Compiling under VS2002.
There is an Academic version of VS2003.NET available to students or faculty enrolled in college, which has an MSRP of $99. It IS legal to distribute content created with this version, however if Microsoft find out that you're not a student, they will most likely try to put an end to it.
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 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.
Slightly more promising would be using the Visual C++ Toolkit, which is free and has the Visual C++ compiler and linker. It can't, however, parse Visual Studio solution files, getting around which is also a non-trivial task. The advantage is that getting the SDK working with MinGW requires re-writing a suprisingly large number of sections of code, while the VC++ Toolkit merely needs to have a batch file/makefile written for it.