|

楼主 |
发表于 2007-3-2 09:24:24
|
显示全部楼层
对,就是编译gcc-4.1.1的时候出现的.
makefile 中是这样的
./configure --prefix=$(PREFIX) --target=$(ARCH) \
--enable-clocale=gnu --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-languages=c,c++ --disable-libstdcxx-pch \
--disable-nls
$(MAKE) -C $(SRC_DIR)/$(GCC_NAME)
$(MAKE) -C $(SRC_DIR)/$(GCC_NAME) install
config.log 中是这样的:
configure:2301: checking for MPFR
configure:2314: gcc -o conftest -g -O2 conftest.c -lmpfr -lgmp 1>&5
configure:2308:18: mpfr.h: No such file or directory
configure: In function `main':
configure:2310: `mpfr_t' undeclared (first use in this function)
configure:2310: (Each undeclared identifier is reported only once
configure:2310: for each function it appears in.)
configure:2310: parse error before "n"
configure:2310: `n' undeclared (first use in this function)
configure: failed program was:
#line 2306 "configure"
#include "confdefs.h"
#include <gmp.h>
#include <mpfr.h>
int main() {
mpfr_t n; mpfr_init(n);
; return 0; }
这个mpfr.h是个什么文件呀! |
|