This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++ 3.2 bug?
- From: Alexander Bussman <alexander dot bussman at telia dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 28 Oct 2002 14:30:57 +0100
- Subject: 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.