[Bug libstdc++/15074] New: g++ -lsupc++ still links against libstdc++
phython at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Apr 22 16:24:00 GMT 2004
The FAQ says that using g++ and -lsupc++ together will link against libsupc++
instead of libstdc++. This doesn't work on GNU/Linux:
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)
--
Summary: g++ -lsupc++ still links against libstdc++
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: phython at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-linux-gnu
GCC host triplet: sparc-linux-gnu
GCC target triplet: sparc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15074
More information about the Gcc-bugs
mailing list