Compiling under VS2010
Jump to navigation
Jump to search
Visual Studio 2010 has a lot of great features, and can be used with the Source SDK fairly easily. It will be released on April 11 (April 12 for the free C++ Express edition), but can be used today in Release Candidate form.

Fixing Compilation
- Follow the instructions for fixing debug compiles in VS2008, which apply here as well.
- Right click on the client and server projects in VS and go to Properties > Configuration > General. Change Target Name to client and server respectively.
Fixing Warnings
You're going to be stuck with at least one warning during compilation, but you can get rid of some of them. Open these files in your client project and move #include "cbase.h"
up to the first line:
- hud_locator.cpp
- hud_credits.cpp
- hud_flashlight.cpp
You may also want to go to Configuration Properties->General for both projects and change the Intermediate Directory from .\Release\
to Release\
, removing the .\
. (That this produces a warning is a bug that should be fixed in VS2010's final release.)