[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#180129: g++-3.2: please use --enable-__cxa_atexit



Package: g++-3.2
Version: 1:3.2.2-1
Severity: normal

For a standard conforming compiler, g++-3.2 must be configured with
--enable-__cxa_atexit (the function __cxa_atexit is in libc6).

>From gcc-3.2.2/gcc/config.in:

/* Define if you want to use __cxa_atexit, rather than atexit, to
   register C++ destructors for local statics and global objects.
   This is essential for fully standards-compliant handling of
   destructors, but requires __cxa_atexit in libc. */
#undef DEFAULT_USE_CXA_ATEXIT

For more background information on this topic have a look at a recent
C++ book like "Modern C++ Design" by A. Alexandrescu.

Thanks,
Markus F.X.J. Oberhumer


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux laetitia 2.4.20-perfctr #5 Sun Jan 12 04:28:01 CET 2003 i686
Locale: LANG=C, LC_CTYPE=de_DE@euro

Versions of packages g++-3.2 depends on:
ii  gcc-3.2                       1:3.2.2-1  The GNU C compiler
ii  gcc-3.2-base                  1:3.2.2-1  The GNU Compiler Collection (base 
ii  libc6                         2.3.1-11   GNU C Library: Shared libraries an
ii  libstdc++5-dev                1:3.2.2-1  The GNU Standard C++ Library v3 (d

-- no debconf information





Reply to: