minor gcc2->gcc3 migration nit

James Morrison ja2morri@csclub.uwaterloo.ca
Thu Apr 22 16:13:00 GMT 2004


Phil Edwards <phil@codesourcery.com> writes:

> On Thu, Apr 22, 2004 at 08:38:09AM -0700, Dan Kegel wrote:
> > 
> > And then there's libsup++, which I gather contains things like
> > std::terminate(), so maybe sometimes you'll need to add -lsupc++?
> 
> This is in the libstdc++ FAQ somewhere.  Briefly:  libsupc++ is folded
> into libstdc++, so you never /need/ to specify it.  For people wanting
> certain core routines but not the rest of the library, they can add
> -lsupc++ to preempt the larger library.

 The FAQ entry is here:
http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#2_5
 
 However, it doesn't seem to be correct:

jim@squirrel:~/test $ g++ -o sizeof sizeof.cc -lsupc++
jim@squirrel:~/test $ ldd sizeof
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x7002c000)
        libm.so.6 => /lib/libm.so.6 (0x700f0000)
        libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0x70184000)
        libc.so.6 => /lib/libc.so.6 (0x701a0000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x70000000)
jim@squirrel:~/test $ gcc -o sizeof sizeof.cc -lsupc++
jim@squirrel:~/test $ ldd sizeof
        libc.so.6 => /lib/libc.so.6 (0x7002c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x70000000)

 Filed as PR15074

Jim



More information about the Gcc mailing list