This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
multiple definition error when compiling gcc-4.4.2
- From: xinsan Chen <xinsan dot chen at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 21 Nov 2009 17:33:00 +0800
- Subject: multiple definition error when compiling gcc-4.4.2
?hi, all
Now I meet new problem during compiling gcc-4.4.2.
after installing gmp and mpfr,
./configure --prefix=/home/cj/gcc-4.4.2
--enable_languages=c,c++,fortran --with-gmp=/usr/local
--with-mpfr=/usr/local
make
.libs/compile_options.o: In function 'feof_unlocked'
/usr/include/bits/stdio.h:123: multiple definition of 'feof_unlocked'
.libs/backtrace.o:/usr/include/bits/stdio.h:123: first defined here
.libs/compile_options.o: In function 'ferror_unlocked':
/usr/include/bits/stdio.h:130: multiple definition of 'ferror_unlocked'
.libs/backtrace.o:/usr/include/bits/stdio.h:130: first defined here
...
How to solve this? Thanks.