This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Symbol versioning problem? Different versions of same symbol being called.
- From: Carlo Wood <carlo at alinoe dot com>
- To: Ben Collins <bcollins at debian dot org>
- Cc: GNU C Library <libc-alpha at sources dot redhat dot com>, binutils at sources dot redhat dot com
- Date: Thu, 24 Jan 2002 19:32:46 +0100
- Subject: Re: Symbol versioning problem? Different versions of same symbol being called.
- References: <20020124013408.A7683@alinoe.com> <20020124113641.GY16187@bubble.sa.bigpond.net.au> <20020124150030.A27421@alinoe.com> <20020124093649.A27786@lucon.org> <20020124184420.A4382@alinoe.com> <20020124181527.GP551@blimpo.internal.net>
On Thu, Jan 24, 2002 at 01:15:27PM -0500, Ben Collins wrote:
> Why is it linking C++ code with gcc and not g++? Doesn't that miss some
> relevant libraries?
Using g++ gives:
g++-3.0.3 -shared threading.lo elf32.lo bfd.lo debug.lo debugmalloc.lo demangle.lo demangle3.lo semwrapper.lo strerrno.lo type_info.lo -Wl,--whole-archive utils/.libs/libutils.al -Wl,--no-whole-archive utils/.libs/libutils.al -ldl -Wl,-soname -Wl,libcwd.so.0 -o .libs/libcwd.so.0.99.16 -v -save-temps
Reading specs from /usr/local/gcc-3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/specs
Configured with: /usr/src/gcc/gcc-3.0.3/configure --prefix=/usr/local/gcc-3.0.3 --enable-shared --with-gnu-as --with-gnu-ld --enable-languages=c++ --enable-debug --enable-threads
Thread model: posix
gcc version 3.0.3
/usr/local/gcc-3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/collect2 -m elf_i386 -shared -o .libs/libcwd.so.0.99.16 /usr/lib/crti.o /usr/local/gcc-3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/crtbeginS.o -L/usr/local/gcc-3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3 -L/usr/local/gcc-3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../.. -rpath /usr/local/gcc-3.0.3/lib: threading.lo elf32.lo bfd.lo debug.lo debugmalloc.lo demangle.lo demangle3.lo semwrapper.lo strerrno.lo type_info.lo --whole-archive utils/.libs/libutils.al --no-whole-archive utils/.libs/libutils.al -ldl -soname libcwd.so.0 -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/local/gcc-3.0.3/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/crtendS.o /usr/lib/crtn.o
Which is exactly the same except for an extra "-lstdc++ -lm".
That is not relevant here though, those libraries are not
involved and not needed.
--
Carlo Wood <carlo@alinoe.com>