De/Compiling under VS2005: Difference between revisions

From Valve Developer Community
< De
Jump to navigation Jump to search
No edit summary
No edit summary
Line 48: Line 48:
*[[Compiling under VS2005/Older SDK]]
*[[Compiling under VS2005/Older SDK]]


{{otherlang:en}} {{otherlang:en:de|Compiling_under_VS2005}}
{{otherlang:en}} {{otherlang:de:en|Compiling_under_VS2005}}
[[Category:Tutorials]] [[Category:Programming]]
[[Category:Tutorials]] [[Category:Programming]]

Revision as of 04:28, 23 April 2007


Einleitung

The following is a general guide to getting HL2 compiling under VS 2005. Its important to note that the SDK code for HL2 supports VS2005, but only in the the _2005.sln files. Compiling a _2003.sln under 2005 and visa versa will only generate problems and errors. Older versions of the source code did not support 2005, to get them working with 2005 go here.

Was funktioniert

SP

  • Release - client - VS Studio: working & playable
  • Release - hl - VS Studio: working & playable
  • Release - client - V C++ Express: working & playable (after requirements are fullfilled)
  • Release - hl - V C++ Express: working & playable (after requirements are fullfilled)

MP

  • Release - client - VS Studio: working & playable
  • Release - hl - VS Studio: working & playable
  • Release - client - V C++ Express: working & playable (after requirements are fullfilled)
  • Release - hl - V C++ Express: working & playable (after requirements are fullfilled)

Anforderungen

Necessary steps are needed to enable compiling with the Visual Studio C++ 2005 Express Edition:

Files required

Setup

Go to Tools - Options: Projects and Solutions - VC++ Directories

  • In the upper right drop down box, select "Executable files" and add "...\Microsoft Platform SDK\Bin" (replace with the correct path)
  • Then select "Include files" and add "...\Microsoft Platform SDK\Include" and "...\Microsoft DirectX SDK (December 2005)\Include"
  • Then select "Library files" and add "...\Microsoft Platform SDK\Lib" and "...\Microsoft DirectX SDK (February 2007)\Lib\x86"
  • Finally, go to the project properties for hl and client and add user32.lib to Linker->Input->Additional Dependencies (with spaces between entries)

Verwandte Themen

Template:Otherlang:en Template:Otherlang:de:en