Visual Studio 2005 Ignores Preprocessor directives during compile

Posted by miked on Stack Overflow See other posts from Stack Overflow or by miked
Published on 2009-03-12T21:03:30Z Indexed on 2010/05/22 19:30 UTC
Read the original article Hit count: 252

Filed under:
|

We just got a new developer and I'm trying to set him up with Dev Studio 2005 (The version we all use at this office), and we're running into a weird problem that I've never seen before.

I have some code that works perfectly on my system, and he can't seem to get it compiled. We've tracked the issue down to his copy of dev studio ignoring the preprocessor directives.

For example, in the project properties under C/C++|Preprocessor|Preprocessor Directives, I add DEFINE_ME. Which should translate to a /D"DEFINE_ME" for the compiler. And it does in my development environment, but it doesn't on his.

I verified that when he checks out the code from the source repository, that he has the same version of the code I do. And if I look in his Project Properties, all of the directives are there. For some reason they're just not getting passed down to the compiler.

Any Ideas?

© Stack Overflow or respective owner

Related posts about c++

Related posts about visual-studio-2005