Hi,
I'm using a library (dime dxf library) which has a function that contains:
#ifndef NDEBUG fprintf(stderr, "debugging messages...\n"); #endif
But, in my inline code, using a "#define NDEBUG" does not turn-off the message.
I've searched the libraries, and cannot find anywhere that NDEBUG was #undef'd or #define'd. Furthermore, placing a #define NDEBUG in the .h file doesn't even disable it.
I think you'll have to recompile the external library with that change to the header file in place.
When the library was first compiled 'NDEBUG' was (apparently) not defined - so that 'fprintf()' call would have been *hardcoded* into the function.
Afaik that's the way pre-processor directives work.
Cheers, Rob
--
Any emails containing attachments will be deleted from my ISP's mail server before I even get to see them. If you wish to email me an attachment, please provide advance warning so that I can make the necessary arrangements.