How to get debug mode version of libstdc++ when compiling GCC

Kaspar Fischer kasparfischer@gmx.net
Fri Jul 23 09:27:00 GMT 2004


> On Thu, Jul 22, 2004 at 05:04:05PM +0200, Pit Cuppens wrote:
> > So I tried this with my GCC compiler, 3.3.2,
> > which I downloaded and built myself according
> > to the instruction on http://gcc.gnu.org/install;
> > my command line was
> > 
> >   ./configure --enable-languages=c++
> 
> Imho you need to use --enable-__cxa_atexit as well for c++
> on a box that uses GNU libc (like GNU/Linux) or you will get
> into trouble with your global destructors.  Reading
> http://gcc.gnu.org/install this isn't clear (it looks like
> you have an arbitrary choice), but in my experience it
> just don't work correctly otherwise.

By the way, it would also be nice if http://gcc.gnu.org/install
explicitly mentioned that the configuration options given
"to gcc" are passed along to libstdc++. It is not completely
clear from the text how libstdc++ can be configured, i.e.,
that you actually can do it by configuring the compiler.

- Kaspar

-- 
+++ GMX DSL-Tarife 3 Monate gratis* +++ Nur bis 25.7.2004 +++
Bis 24.000 MB oder 300 Freistunden inkl. http://www.gmx.net/de/go/dsl



More information about the Libstdc++ mailing list