Compiling under VS2012: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(stole the bare essentials from the 2010 page)
 
(the additional issue I had when building Alien Swarm)
Line 4: Line 4:


{{bug|Converting the Alien Swarm server project to VS2012 will lead to an "invalid characters in path" error. To fix it, open <code>game\server\swarm_sdk_server.vcproj</code> with a text editor and delete "<code>&apos;&#x0A;$File</code>" from line 2232.}}
{{bug|Converting the Alien Swarm server project to VS2012 will lead to an "invalid characters in path" error. To fix it, open <code>game\server\swarm_sdk_server.vcproj</code> with a text editor and delete "<code>&apos;&#x0A;$File</code>" from line 2232.}}
 
* With the default VS2012 settings, linking some projects will fail with "Error lnk2026: module unsafe for safeseh image". This seems to happen when you try to link to libraries that were compiled with different versions of the compiler. As a workaround, set the linker option <nowiki>/SAFESEH[:NO]</nowiki> .
== See also ==
== See also ==



Revision as of 04:44, 3 July 2013

Visual studio logo.png

Using Visual Studio 2012 is possible for Source. You can use the free C++ Express edition.

Icon-Bug.pngBug:Converting the Alien Swarm server project to VS2012 will lead to an "invalid characters in path" error. To fix it, open game\server\swarm_sdk_server.vcproj with a text editor and delete "' $File" from line 2232.  [todo tested in ?]
  • With the default VS2012 settings, linking some projects will fail with "Error lnk2026: module unsafe for safeseh image". This seems to happen when you try to link to libraries that were compiled with different versions of the compiler. As a workaround, set the linker option /SAFESEH[:NO] .

See also