Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#define DEBUG grr

Status
Not open for further replies.

Pyramus

Programmer
Dec 19, 2001
237
GB
My program is still outputting debug logs when I'm building in release mode and I can't see at all where it's picking up the #define from.

I've checked in project settings, and searched all my files for #define DEBUG and #define _DEBUG and it doesn't appear anywhere. Any ideas why its doing this?
 
Check the project settings <alt-f7> and look at the C++ tab. In the drop down choose &quot;Preprocessor&quot; and look for it there. If you see it there, you are most likely building in &quot;Debug&quot; and want to build in Release.

Matt
 
Have a look at the code that is generating your debug logs and put a #ifdef DEBUG ... #endif inside the {}.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top