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]
Other format: [Raw text]

g++ 3.2 bug?


Hi!
I'm using gcc/g++ 3.2 and I can't link application statically without errors :(

I configured gcc with:
./configure --prefix=/usr --enable-__cxa_atexit --enable-threads=posix --enable-shared --with-gnu-ld

The error I get ( with any application ):
g++ test.cc -o test -static
usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libstdc++.a(locale.o): In function `std::ctype<char>::classic_table()':
/root/gcc-3.2/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:45: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libstdc++.a(locale.o): In function `std::ctype<char>::ctype[not-in-charge](unsigned short const*, bool, unsigned)':
/root/gcc-3.2/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:70: undefined reference to `__ctype_toupper'
/root/gcc-3.2/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:70: undefined reference to `__ctype_tolower'
/root/gcc-3.2/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:45: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libstdc++.a(locale.o): In function `std::ctype<char>::ctype[in-charge](unsigned short const*, bool, unsigned)':
/root/gcc-3.2/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:70: undefined reference to `__ctype_toupper'
/root/gcc-3.2/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:70: undefined reference to `__ctype_tolower'
/root/gcc-3.2/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu/bits/ctype_noninline.h:45: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status

I do have glibc 2.3.1.


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