Symbol versioning problem? Different versions of same symbol being called.
Ben Collins
bcollins@debian.org
Thu Jan 24 10:15:00 GMT 2002
On Thu, Jan 24, 2002 at 06:44:20PM +0100, Carlo Wood wrote:
> On Thu, Jan 24, 2002 at 09:36:49AM -0800, H . J . Lu wrote:
> > Is your shared library built with
> >
> > # gcc/g++ -shared ....
>
> Yes. I use libtool, which calls the following
>
> Compiling an object file:
>
> g++-3.0.3 -DHAVE_CONFIG_H -I./include -I./include -DCWDEBUG -ggdb3
> -pipe -pthread -Wall -Woverloaded-virtual -Wundef -Wpointer-arith
> -Wwrite-strings -Werror -Winline -c elf32.cc -MT elf32.lo -MD
> -MP -MF .deps/elf32.TPlo -fPIC -DPIC -o elf32.o
> mv -f elf32.o elf32.lo
>
> Final linking:
>
> gcc-3.0.3 -shared threading.lo elf32.lo bfd.lo debug.lo debugmalloc.lo
> demangle.lo demangle3.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
Why is it linking C++ code with gcc and not g++? Doesn't that miss some
relevant libraries?
--
.----------=======-=-======-=========-----------=====------------=-=-----.
/ Ben Collins -- Debian GNU/Linux -- WatchGuard.com \
` bcollins@debian.org -- Ben.Collins@watchguard.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
More information about the Libc-alpha
mailing list