Compiler choices

From Valve Developer Community
(Redirected fromCompiler Choices)
Jump to navigationJump to search
English (en)Español (es)Русский (ru)Translate (Translate)
Deutsch (de)Esperanto (eo)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)Translationmark (TranslationMark)Flag-white-i.png
This article is about choosing a C++ code compiler. For a list of subjects which use the word "compiler", seeCompiler.

You have several choices for compiling unedited variants of the Source SDK depending on which version you are using.

Contents

Visual Studio

Visual Studio logo
Visual Studio logo used from 2010-2012.
Info.png
This article or section is about an external tool that is not directly related to Valve's engines. It is not an exhaustive source of information and may only exist on this wiki for reference purposes.
Please seeWikipedia icon Visual Studio for more information on the tool itself.
This article is about the IDE recommended for use with the Source engine's C++ code. For the rich text editor commonly used with scripts, seeVisual Studio Code.

Visual Studio is anWikipedia icon Integrated development environment (IDE) developed and maintained by Microsoft. It is the default IDE recommended for use with the Source SDK on Windows. InSource 2013Source 2013, the default version of Visual Studio used for Source engine development isVisual Studio 2013 (Visual Studio 2022 forTeam Fortress 2 branchTeam Fortress 2 branch). Older versions of Visual Studio are not compatible with Source 2013, and newer versions of Visual Studio will not work with Source 2013 by default.

Please seeInstalling Visual Studio 2013 (forSource 2013 Singleplayer) orInstalling Visual Studio 2022 (forTeam Fortress 2 branch) for more information on how to install Visual Studio, as well as how newer versions of Visual Studio can be used.

Availability

Different versions of Visual Studio are supported between different versions of the Source SDK.

VersionEngine branchRequirements
Visual Studio 2002Source 2006Source 2006 and earlierSeeCompiling under VS2002.
Visual Studio 2003SeeCompiling under VS2003.
Visual Studio 2005Alien Swarm - SDKAlien Swarm Authoring Tools,Source 2007Source 2007 and earlierSeeCompiling under VS2005.
Visual Studio 2008SeeCompiling under VS2008.
Visual Studio 2010Alien Swarm - SDKAlien Swarm Authoring Tools,Source 2007Source 2007 and earlier
Source 2013 SingleplayerSource 2013 Singleplayer
Source 2013 MultiplayerSource 2013 Multiplayer (pre-2025)
Alien Swarm - SDK,Source 2007 and earlier: SeeCompiling under VS2010.
Source 2013: Add /2010 to your VPC command line
Visual Studio 2012Alien Swarm - SDK,Source 2007 and earlier: SeeCompiling under VS2012.
Source 2013: Supported
Visual Studio 2013Source 2013 SingleplayerSource 2013 Singleplayer
Source 2013 MultiplayerSource 2013 Multiplayer (pre-2025)
Default for Singleplayer only, aswell as pre-2025 Multiplayer.
Visual Studio 2015SeeCompiling under VS2022.
Visual Studio 2017
Visual Studio 2019
Visual Studio 2022Source 2013 SingleplayerSource 2013 Singleplayer
Team Fortress 2 branchTeam Fortress 2 branch
Team Fortress 2 branch:Default. SeeSetting up Source SDK Base 2013 Multiplayer.
Source 2013 Singleplayer: SeeCompiling under VS2022.




GCC

GCC logo
Info.png
This article or section is about an external tool that is not directly related to Valve's engines. It is not an exhaustive source of information and may only exist on this wiki for reference purposes.
Please seeWikipedia icon GNU Compiler Collection for more information on the tool itself.

TheGNU Compiler Collection (GCC) is a collection of code compilers maintained by the GNU Project.G++ in particular is the default compiler recommended for use with the Source SDK on Linux.

Availability

Note.pngNote:Alien Swarm - SDKAlien Swarm - SDK does not support GCC. If you want your Alien Swarm mod to run on Linux, you will need to use Proton.
Todo: What about theTeam Fortress 2 branchTeam Fortress 2 branch?
VersionEngine branchRequirements
GCC 4.2.x or lowerSource 2007Source 2007 and earlierSeeCompiling under Linux.
GCC 4.6-4.8Source 2013Source 2013
Team Fortress 2 branchTeam Fortress 2 branch[confirm]
SeeSource SDK 2013 on Linux ("container" method).
GCC 5 or higherSeeSource SDK 2013 on Linux ("container" method) and optional step for changing the toolchain.




See also

External links

Retrieved from "https://developer.valvesoftware.com/w/index.php?title=Compiler_choices&oldid=467838"
Categories:
Hidden categories: