How to debug code that uses the STL library?
Brad M. Garcia
bgarcia@fore.com
Wed Feb 18 04:16:00 GMT 1998
Anand Raman (anand@hebb.cog.jhu.edu) wrote:
> Is there a egcs compiler option that says don't compile debug info
> into files included from this one?
Compile your code with "-fno_implicit_templates -g".
In another file, do explicit template instantiations for the
templates that you require (if you don't know how to do that,
get a c++ book), and compile it _without_ the two flags shown
above. Link all files together and you're done.
Brad Garcia
___/ __ / __ / ___/ "Being the Linux of digital media
__/ / / / _/ __/ would be a very good life."
_/ ____/ _/ _| ____/ - Jean-Louis Gassee, CEO of Be, Inc.
More information about the Gcc
mailing list