Jump to content
  • Advertisement
Sign in to follow this  
invicticide

Per-config preproc defines?

This topic is 4735 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey all, I'm working under Visual Studio .NET 2003 and have a project with multiple build configurations (Debug/Release for DirectX and OpenGL versions). I'm using a library which requires me to #define a symbol for the DirectX rendering system or a different symbol for the OpenGL system, but not both at the same time. I'm fairly sure I've seen something before in the project settings where I can define preprocessor symbols on a per-configuration basis; these are not listed as a #define in a file anywhere but are automatically defined whenever I build under that configuration. The problem is that I can't seem to find this setting! Am I blind, or dreaming? That is all.

Share this post


Link to post
Share on other sites
Advertisement
It is possible, under preprocessor defines, or symbols or something. I can't help any more as don't have access to VS anymore :(

Share this post


Link to post
Share on other sites
"Configuration properties" / "C/C++" / "Preprocessor" / "Preprocessor Definitions".

Share this post


Link to post
Share on other sites
Using the IDE, go to project properties. Under the C/C++ category go to the Preprocessor section, and the area you want is called Preprocessor Definitions.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!