Compiler choices: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(VS2010!)
Line 1: Line 1:
{{otherlang2|ru=Compiler Choices:ru|es=Compiler Choices:es}}
{{otherlang2|ru=Compiler Choices:ru|es=Compiler Choices:es}}


[[Image:Vsexpress logo.png|right|Visual Studio Express logo]]
[[File:Visual studio logo.png|right|Visual Studio logo]]
[[Image:Gccegg-65.png|right|GCC logo]]
[[File:Gccegg-65.png|right|GCC logo]]


You have several choices for compiling the Source SDK:
You have several choices for compiling the Source SDK:


#'''[http://msdn.microsoft.com/howtobuy/visualc/default.aspx Visual Studio 2005]''' / '''[http://download.microsoft.com/download/8/3/a/83aad8f9-38ba-4503-b3cd-ba28c360c27b/ENU/vcsetup.exe Visual C++ Express 2005]''' — which are the officially supported compilers.
#'''[http://www.microsoft.com/visualstudio/en-us/products/2005-editions Visual Studio 2005]''' / '''[http://download.microsoft.com/download/8/3/a/83aad8f9-38ba-4503-b3cd-ba28c360c27b/ENU/vcsetup.exe Visual C++ Express 2005]''' — which are the officially-supported compilers.
#'''[http://msdn.microsoft.com/vs2008/products/ Visual Studio 2008]''' / '''[http://www.microsoft.com/express/vc/ Visual C++ Express 2008]''' — which can be used [[Compiling under VS2008|after a bit of work]].
#'''[http://www.microsoft.com/visualstudio/en-us/products/2008-editions/ Visual Studio 2008]''' / '''[http://www.microsoft.com/express/Downloads/#2008-Visual-CPP Visual C++ Express 2008]''' — which can be used [[Compiling under VS2008|after a bit of work]].
#'''[http://www.microsoft.com/visualstudio/en-us/products/2010-editions/ Visual Studio 2010]''' / '''[http://www.microsoft.com/express/Downloads/#2010-Visual-CPP Visual C++ Express 2010]''' — [[Compiling under VS2010|ditto]].
#'''[http://gcc.gnu.org/ GCC]''' — which is used to compile [[Wikipedia:Linux|Linux]] [[Dedicated server|Dedicated Server]]s.
#'''[http://gcc.gnu.org/ GCC]''' — which is used to compile [[Wikipedia:Linux|Linux]] [[Dedicated server|Dedicated Server]]s.


If you own a copy of Visual Studio 2005/2008 you'll probably want to use that, and if you're compiling for Linux you don't have a choice to make. Which leaves only the Visual C++ Express versions to choose between:
If you own a copy of Visual Studio you'll probably want to use that, and if you're compiling for Linux you don't have a choice to make, which leaves only the Express editions to choose between. There isn't much competition any more: choose 2010 for better compiling, better InteliSense, better UI, and better Vista/7 compatibility.
 
; [http://download.microsoft.com/download/8/3/a/83aad8f9-38ba-4503-b3cd-ba28c360c27b/ENU/vcsetup.exe VCE2005]
: Officially supported by Valve
: Older technology
; [http://www.microsoft.com/express/vc/ VCE2008]
: Supported by Microsoft
: Better Vista compatibility
: Nicer user interface
 
Both are perfectly acceptable choices, providing for free all of the functionality needed to program and compile a mod. If you are unsure, choose 2008, as you will not have to install additional software.
 
{{tip|[http://www.microsoft.com/visualstudio/en-us/products/2010/ Visual Studio 2010] is nearing release and features ''vastly'' improved [[wikipedia:IntelliSense|IntelliSense]]. It can compile the SDK source code after [[Compiling under VS2010|some modifications]] - you should consider using the beta!}}


== Additional SDKs ==
== Additional SDKs ==


*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.
* Visual C++ Express 2005 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]).
*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.


== See also ==
== See also ==
Line 36: Line 25:
* [[Compiling under Linux]]
* [[Compiling under Linux]]


[[Category:Source_SDK_FAQ]]
[[Category:Source SDK FAQ]]
[[Category:Programming]]
[[Category:Programming]]

Revision as of 02:58, 13 April 2010

Template:Otherlang2

Visual Studio logo
GCC logo

You have several choices for compiling the Source SDK:

  1. Visual Studio 2005 / Visual C++ Express 2005 — which are the officially-supported compilers.
  2. Visual Studio 2008 / Visual C++ Express 2008 — which can be used after a bit of work.
  3. Visual Studio 2010 / Visual C++ Express 2010ditto.
  4. GCC — which is used to compile Linux Dedicated Servers.

If you own a copy of Visual Studio you'll probably want to use that, and if you're compiling for Linux you don't have a choice to make, which leaves only the Express editions to choose between. There isn't much competition any more: choose 2010 for better compiling, better InteliSense, better UI, and better Vista/7 compatibility.

Additional SDKs

See also