Talk:Compiling under VS2010: Difference between revisions
Jump to navigation
Jump to search
(→Error "weapon_basesdk.h": new section) |
|||
Line 17: | Line 17: | ||
When i try to compile i get an error about the missing weapon_basesdk.h file (it is totally missing from the project and not resent in the directory). I'm using Source SDK 2007 with the "Start mod from scratch". | When i try to compile i get an error about the missing weapon_basesdk.h file (it is totally missing from the project and not resent in the directory). I'm using Source SDK 2007 with the "Start mod from scratch". | ||
---[[User:Gravity0|Gravity0]] |
Revision as of 03:45, 5 July 2010
Fixing Compilation
It should be noted that it seems to have trouble with the new Execute after / before options in the custom build, i recommend using: "Execute after: PostBuildEvent"
Also, i use Environment variables to copy files to the right mod folder, makes piece of code cleaner ;) --Neico 12:18, 14 March 2010 (UTC)
- If I remember right I tried using Execute After: PostBuildEvent and Execute After: Build and ran into the same problem, IE: It would sometimes decide it didn't want to copy the files, despite the fact that it was compiling changes that I had made. My alternative solution is obviously pretty inelegant. I have no idea how to use use environment variables though, I will have to look into that. -Sarkahn
Unable to Compile
When I try to Build my Mod, I get this Error
1>cl : Command line error D8016: '/ZI' and '/Ox' command-line options are incompatible
How do I fix that? --Adam.gamedev 21:15, 30 May 2010 (UTC)
Error "weapon_basesdk.h"
When i try to compile i get an error about the missing weapon_basesdk.h file (it is totally missing from the project and not resent in the directory). I'm using Source SDK 2007 with the "Start mod from scratch".
---Gravity0