Compiling under VS2010: Difference between revisions
Jump to navigation
Jump to search
Note:The earlier beta releases of VS2010 can't properly compile debug DLLs.
TomEdwards (talk | contribs) (corrections and cleanup) |
|||
Line 1: | Line 1: | ||
'''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. | |||
{{note|The earlier beta releases of VS2010 can't properly compile debug DLLs.}} | |||
== Fixing Compilation == | == Fixing Compilation == | ||
# Follow the instructions [[Compiling under VS2008#Fix debug compilation|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 <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 | ||
You may also want to go to ''Configuration Properties->General'' for both projects and change the ''Intermediate Directory'' from <code>.\Release\</code> to <code>Release\</code>, removing the <code>.\</code>. (That this produces a warning is a bug that should be fixed in VS2010's final release.) | |||
== | == See also == | ||
* [http://www.microsoft.com/visualstudio/en-us/ Visual Studio 2010] | |||
* [[Launching from Visual Studio]] | |||
[[Category:Tutorials]] | [[Category:Tutorials]] | ||
[[Category:Programming]] | [[Category:Programming]] | ||
[[Category:Source SDK FAQ]] | [[Category:Source SDK FAQ]] |
Revision as of 10:45, 14 March 2010
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.)