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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass macros definition in g++ command line?

Status
Not open for further replies.

Lim

Programmer
Aug 15, 2000
192
US
How to pass Macros definition to preprocessor with gcc
g++ -DMY_DEBUG is not working.
or
g++ -UDEBUG is not turning off DEBUG macros definition in programm. DEBUG is always DEFINED even if I do not put any macros definition in comand line.
How to undefined DEBUG macros for Release version?
I am compiling on SGI.
 
Ok, generally -DMY_DEBUG works.
I just can not undefine DEBUG it is always on.
I did not found any #define DEBUG in code
and even with -UDEBUG in my command line DEBUG is defined in code?
What can it be?
 
I have found. One 3rd party software has DEBUG definition in include file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top