ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.82k stars 2.01k forks source link

IntelliSense error #230

Open ndido98 opened 10 years ago

ndido98 commented 10 years ago

Hi, I've got a problem which is quite annoying. I use VS2013 Express and I see that in every file at line 1 position 1 IntelliSense gives me an error: "IntelliSense: command-line error: invalid macro definition: PROJECTDIR=C:\Users\Niki\Documents\GitHub\ThirteenLives\sp\src*" (the asterisk means that the next part changes on which file I'm currently working on)

How can I solve this annoying problem?

tjhorner commented 9 years ago

Know this issue is old, but the fix is to go into the Properties dialog of whatever project you're working on (server or client) then head to Configuration Properties -> C/C++ -> Preprocessor then edit the Preprocessor Definitions by putting quotes around the value of PROJECTDIR like this: