undefined versioned symbol name std::time_put_w@@GLIBCPP_3.2
yangdy
yangdy@sbcglobal.net
Tue Apr 29 02:39:00 GMT 2003
I'm trying to link stdc++ statically. But I got the subject error.
G++: i686-pc-linux-gnu/3.2.3
ld: GNU ld version 2.13.2
link option and libraries: g++-3.2.3 -fPIC -v -shared -Xlinker -z =
-Xlinker defs
$(MY_STUFF)
-nostdlib \
/usr/lib/crt1.o /usr/lib/crti.o \
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/crtbegin.o \
-L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.3 \
-L/usr/local/lib \
-L/usr/lib \
-ldl -lnsl -lmp -lm \
-Wl,-Bstatic -lstdc++ \
-Wl,-Bdynamic -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc \
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/crtend.o \
/usr/lib/crtn.o
If I change the link option and libraries to:
g++-3.2.3 -fPIC -v -shared -Xlinker -z -Xlinker defs $(MY_STUFF)
-ldl -lnsl -lmp -lm -static -lstdc++
my shared object links but it now depends on libstdc++.so.5 and =
libgcc_s.so.1.
But I don't want to re-distribute gcc libraries.
Please help.
Thanks.
______David
More information about the Gcc-help
mailing list