views:

88

answers:

1

I'd like to include some debug information in an application, but hide certain symbols from appearing. Is there any way to do this with GCC 4.0 (or 4.2)? This is on OSX.

+2  A: 

Move all such code into a single source file and compile that without -g. Note that you can't omit global symbol names for obvious reasons.

Aaron Digulla