Click to See Complete Forum and Search --> : libstdc++ and libc


cjanscen
08-25-2004, 05:28 PM
Does the C++ standard liobrary require a libc?
Really simple question I know, but I can't answer it for myself right now because I am not on a linux computer.

bwkaz
08-25-2004, 07:01 PM
Yes, but only because g++ links against libc (it has to to in order for its C++ to be backward compatible with C).

$ ldd /usr/lib/libstdc++.so
linux-gate.so.1 => (0xffffe000)
libm.so.6 => /lib/libm.so.6 (0x400c4000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x400e6000)
libc.so.6 => /lib/libc.so.6 (0x400ee000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)