Sign in to follow this  

Per-config preproc defines?

This topic is 4548 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
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

This topic is 4548 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this