This is the mail archive of the gcc-help@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]
Other format: [Raw text]

undefined versioned symbol name std::time_put_w@@GLIBCPP_3.2


 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



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