Compiling under VS2010: Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) (corrections and cleanup) |
TomEdwards (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
'''Visual Studio 2010''' | '''Visual Studio 2010''' is the best VS edition for Source. You can use the free [http://www.microsoft.com/express/Downloads/#2010-Visual-CPP C++ Express] edition. | ||
== Debugging == | |||
== | |||
# Follow the instructions [[Compiling under VS2008#Fix debug compilation|for fixing debug compiles in VS2008]], which apply here as well. | # Follow the instructions [[Compiling under VS2008#Fix debug compilation|for fixing debug compiles in VS2008]], which apply here as well. | ||
Line 10: | Line 8: | ||
== Fixing Warnings == | == Fixing Warnings == | ||
If you want to remove the "precompiled header" warnings seen during a full compile, open these files in your client project and move <code>#include "cbase.h"</code> up to the first line: | |||
# hud_locator.cpp | # hud_locator.cpp | ||
# hud_credits.cpp | # hud_credits.cpp | ||
# hud_flashlight.cpp | # hud_flashlight.cpp | ||
== See also == | == See also == | ||
* [http://www.microsoft.com/visualstudio/en-us/ Visual Studio 2010] | * [http://www.microsoft.com/visualstudio/en-us/products/2010-editions/ Visual Studio 2010] | ||
* [[Launching from Visual Studio]] | * [[Launching from Visual Studio]] | ||
Revision as of 03:38, 13 April 2010
Visual Studio 2010 is the best VS edition for Source. You can use the free C++ Express edition.
Debugging
- 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
If you want to remove the "precompiled header" warnings seen during a full compile, 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