Compiling under VS2002: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(This page applies to Source 2006 only.)
 
(23 intermediate revisions by 14 users not shown)
Line 1: Line 1:
[[Category:Tutorials]] [[Category:Programming]]I have tested out compiling under Visual Studio 2002 Pro and it works! Here is what you need to do...
{{LanguageBar}}
{{TabsBar|main=Visual Studio}}
{{Outdated sdk|{{src06|4.1}}|newer-sdk-equivalent=[[Compiler choices]]}}
The Visual Studio project files provided in the [[Source SDK]] are VS2003 project files. This page details the changes to these files necessary to allow them to be opened and compiled in Visual Studio 2002.


The project files are saved as VS2003 project files so you will need to edit the following files in notepad.
{{note|These code patches are not supplied or maintained by [[Valve]] and are not officially supported.}}


For the solution file <code>src/Game_sdk.sln</code> change the first line from  ...
==Changes==
<pre>
Edit listed files in a [[text editor]].
Microsoft Visual Studio Solution File, Format Version 8.00
</pre>
... to ...
<pre>
Microsoft Visual Studio Solution File, Format Version 7.00
</pre>


For the C++ project file <code>src/cl_dll/client_sdk.vcproj</code> change the version on line 4 from  ...
To verify that you have successfully made these changes, open the <code>src/Game_sdk.sln</code> file in VS2002 and compile the solution.
<pre>
==={{Code|src/Game_sdk.sln}}===
Version="7.10"
{|style="background:transparent;"
</pre>
|{{Codeblock|Microsoft Visual Studio Solution File, Format Version 8.00}}
... to ...
|-
<pre>
|style="text-align:center;"|↓
Version="7.00"
|-
</pre>
|{{Codeblock|Microsoft Visual Studio Solution File, Format Version 7.00}}
|}


And finnaly for the C++ project file <code>src/dlls/hl_sdk.vcproj</code> change the version on line 4 from  ...
==={{Code|src/cl_dll/client_sdk.vcproj & src/dlls/hl_sdk.vcproj}}===
<pre>
{|style="background:transparent;"
Version="7.10"
|{{Codeblock|Version{{=}}"7.10"}}
</pre>
| →
... to ...
|{{Codeblock|Version{{=}}"7.00"}}
<pre>
|}
Version="7.00"
===Patch===
</pre>
Download [http://ts2do.110mb.com/vs2002patch.zip this] to fix VS2002 compile errors.


Then open the <code>src/Game_sdk.sln</code> file in VS2002 and compile the solution. This process worked for me. --[[User:Createdbyx|Created by: X]] 17:57, 1 Sep 2005 (PDT)
== See also ==
*[[Compiling under VS2003]]
*[[Compiling under VS2005]]


 
[[Category:Tutorials]] [[Category:Programming]]
== Related Articles ==
*[[Microsoft Visual Studio 6.0 Usage]]
*[[Compiling under VS2005]]

Latest revision as of 05:34, 22 September 2024

English (en)Русский (ru)中文 (zh)Translate (Translate)
Visual Studio compilers: edit
Ambox warning yellow.png
This page was written for Source 2006 Source 2006 or earlier. It may not be applicable to newer versions of the Source SDK.
For more up-to-date information, see Compiler choices.

The Visual Studio project files provided in the Source SDK are VS2003 project files. This page details the changes to these files necessary to allow them to be opened and compiled in Visual Studio 2002.

Note.pngNote:These code patches are not supplied or maintained by Valve and are not officially supported.

Changes

Edit listed files in a text editor.

To verify that you have successfully made these changes, open the src/Game_sdk.sln file in VS2002 and compile the solution.

src/Game_sdk.sln

Microsoft Visual Studio Solution File, Format Version 8.00
Microsoft Visual Studio Solution File, Format Version 7.00

src/cl_dll/client_sdk.vcproj & src/dlls/hl_sdk.vcproj

Version="7.10"
Version="7.00"

Patch

Download this to fix VS2002 compile errors.

See also