Compiler choices: Difference between revisions
(9 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
{{for|about=the IDE recommended for use with the Source engine's C++ code|the rich text editor commonly used with scripts|[[Visual Studio Code]]}} | {{for|about=the IDE recommended for use with the Source engine's C++ code|the rich text editor commonly used with scripts|[[Visual Studio Code]]}} | ||
'''Visual Studio''' is an {{w|Integrated development environment}} (IDE) developed and maintained by Microsoft. It is the default IDE recommended for use with the Source SDK on Windows. In {{src13|4}}, the default version of Visual Studio used for Source engine development is '''Visual Studio 2013'''. 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 see [[ | '''Visual Studio''' is an {{w|Integrated development environment}} (IDE) developed and maintained by Microsoft. It is the default IDE recommended for use with the Source SDK on Windows. In {{src13|4}}, the default version of Visual Studio used for Source engine development is '''Visual Studio 2013''' ('''Visual Studio 2022''' for {{tf2branch|4}}). 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 see [[Setting up Source SDK Base 2013 Singleplayer#Step One: Installing requirements|Installing Visual Studio 2013]] (for {{src13sp}}) or [[Setting up Source SDK Base 2013 Multiplayer#Step One: Installing requirements|Installing Visual Studio 2022]] (for {{tf2branch}}) for more information on how to install Visual Studio, as well as how newer versions of Visual Studio can be used. | |||
== Availability == | == Availability == | ||
Line 28: | Line 30: | ||
|- | |- | ||
| Visual Studio 2005 | | Visual Studio 2005 | ||
|rowspan=" | |rowspan="2"| {{astools|4.1|nt=1}}, {{src07|4.1}} and earlier | ||
| See [[Compiling under VS2005]]. | | See [[Compiling under VS2005]]. | ||
|- | |- | ||
Line 35: | Line 37: | ||
|- | |- | ||
| Visual Studio 2010 | | Visual Studio 2010 | ||
| See [[Compiling under VS2010]]. | |rowspan="2"| {{astools|4.1|nt=1}}, {{src07|4.1}} and earlier</br>{{src13sp|4.1}}</br>{{src13mp|4.1}} (pre-2025) | ||
| {{astools}}, {{src07}} and earlier: See [[Compiling under VS2010]].</br>{{src13|1}}: Add /2010 to your VPC command line | |||
|- | |- | ||
| Visual Studio 2012 | | Visual Studio 2012 | ||
| See [[Compiling under VS2012]]. | | {{astools}}, {{src07}} and earlier: See [[Compiling under VS2012]].</br>{{src13|1}}: Supported | ||
|- | |- | ||
| Visual Studio 2013 | | Visual Studio 2013 | ||
|rowspan=" | |rowspan="4"| {{src13sp|4.1}}</br>{{src13mp|4.1}} (pre-2025) | ||
| ''Default'' | | ''Default'' for Singleplayer only, aswell as pre-2025 Multiplayer. | ||
|- | |- | ||
| Visual Studio 2015 | | Visual Studio 2015 | ||
|rowspan=" | |rowspan="3"| See [[Compiling under VS2022]]. | ||
|- | |- | ||
| Visual Studio 2017 | | Visual Studio 2017 | ||
Line 52: | Line 55: | ||
|- | |- | ||
| Visual Studio 2022 | | Visual Studio 2022 | ||
| {{src13sp|4.1}}</br>{{tf2branch|4.1}} | |||
| {{tf2branch|1}}: ''Default''. See [[Setting up Source SDK Base 2013 Multiplayer]].</br>{{src13sp|1}}: See [[Compiling under VS2022]]. | |||
|} | |} | ||
Line 63: | Line 68: | ||
== Availability == | == Availability == | ||
{{note|{{astools|4.1}} does not support GCC. If you want your Alien Swarm mod to run on Linux, you will need to use Proton.}} | {{note|{{astools|4.1}} does not support GCC. If you want your Alien Swarm mod to run on Linux, you will need to use Proton.}} | ||
{{todo|What about the {{tf2branch|4}}?}} | |||
{| class="standard-table plainlinks" style="width:60%" | {| class="standard-table plainlinks" style="width:60%" | ||
! Version | ! Version | ||
Line 73: | Line 79: | ||
|- | |- | ||
| GCC 4.6-4.8 | | GCC 4.6-4.8 | ||
|rowspan="2"| {{src13|4.1}} | |rowspan="2"| {{src13|4.1}}</br>{{tf2branch|4.1}}{{confirm}} | ||
| See [[Source SDK 2013#Source SDK 2013 on Linux ("container" method)|Source SDK 2013 on Linux ("container" method)]]. | | See [[Source SDK 2013#Source SDK 2013 on Linux ("container" method)|Source SDK 2013 on Linux ("container" method)]]. | ||
|- | |- |
Latest revision as of 22:59, 22 March 2025
You have several choices for compiling unedited variants of the Source SDK depending on which version you are using.
Visual Studio

Please see

Visual Studio is an Integrated development environment (IDE) developed and maintained by Microsoft. It is the default IDE recommended for use with the Source SDK on Windows. In
Source 2013, the default version of Visual Studio used for Source engine development is Visual Studio 2013 (Visual Studio 2022 for
Team 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 see Installing Visual Studio 2013 (for ) or Installing Visual Studio 2022 (for
) 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.
Version | Engine branch | Requirements |
---|---|---|
Visual Studio 2002 | ![]() |
See Compiling under VS2002. |
Visual Studio 2003 | See Compiling under VS2003. | |
Visual Studio 2005 | ![]() ![]() |
See Compiling under VS2005. |
Visual Studio 2008 | See Compiling under VS2008. | |
Visual Studio 2010 | ![]() ![]() ![]() ![]() |
![]() ![]() Source 2013: Add /2010 to your VPC command line |
Visual Studio 2012 | ![]() ![]() Source 2013: Supported | |
Visual Studio 2013 | ![]() ![]() |
Default for Singleplayer only, aswell as pre-2025 Multiplayer. |
Visual Studio 2015 | See Compiling under VS2022. | |
Visual Studio 2017 | ||
Visual Studio 2019 | ||
Visual Studio 2022 | ![]() ![]() |
Team Fortress 2 branch: Default. See Setting up Source SDK Base 2013 Multiplayer. Source 2013 Singleplayer: See Compiling under VS2022. |
GCC

Please see

The GNU 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



Version | Engine branch | Requirements |
---|---|---|
GCC 4.2.x or lower | ![]() |
See Compiling under Linux. |
GCC 4.6-4.8 | ![]() ![]() |
See Source SDK 2013 on Linux ("container" method). |
GCC 5 or higher | See Source SDK 2013 on Linux ("container" method) and optional step for changing the toolchain. |
See also
- Building without Visual Studio
Visual Studio Code — A rich text editor commonly used with scripts outside of the code.