This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Linking problem on SCO 5.0.2


Hi,

The following is a linking error I got on my SCO OSR 5.0.2 machine. It seems the linker has a problem with the weak symbol in mnrule.o. (btw, for some reason that long symbolname couldn't be demangled by c++filt...)

--compile:

/usr/local/gcc-2.95.1/bin/g++ -c -g -Wall -Wno-format -Wno-parentheses -mpentium mnrule.cc
/usr/local/gcc-2.95.1/bin/g++ -g ismn.o -o ismncc mngeo.o mnreadobj.o mnrule.o mnselsubs.o mnselapi.o mndev.o mnprops.o mncmnd.o mnreaddev.o mnreadrules.o mnrdb.o mngenfuns.o mnobject.o mnframes.o mncmndx.o mntlx.o -lil/escm -lil/esini -lil/esso -lil/essel -lil/eset -lil/esst -lil/esrdb -lil/esmn -lil/eslg -lil/esmx -lil/esqc ../lgstream/liblg++.a ../mxclass/libmx++.a -lsocket -lstdc++
/usr/local/gcc-2.95.1/lib/gcc-lib/i586-pc-sco3.2v5.0.0/2.95.1/libstdc++.a(cstrmain.o): fatal error: symbol `__ge__H3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_RCt12basic_string3ZX01ZX11ZX21T0_b` multiply-defined, also in file mnrule.o
collect2: ld returned 1 exit status
make: *** [ismncc] Error 1

--big symbol in mnrule.o (from 'nm'):

00007104 W __ge__H3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_RCt12basic_string3ZX01ZX11ZX21T0_b

--big symbol in libstdc++.a:

0000305c T __ge__H3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0_RCt12basic_string3ZX01ZX11ZX21T0_b


Now what could that be..?

Thanks,

       Rob Kramer



--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]