首页 文章

编译GMP以解决交叉编译问题

提问于
浏览
1

我正在为我的mac / linux交叉编译器编译gnu gmp,但是我收到了这个错误:

In file included from ../gmp-impl.h:102,
                 from fib_table.c:4:
../fib_table.h:4: warning: data definition has no type or storage class
../fib_table.h:4: warning: type defaults to ‘int’ in declaration of ‘Error’
../fib_table.h:4: warning: type defaults to ‘int’ in declaration of ‘error’
../fib_table.h:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘data’
fib_table.c:7: warning: data definition has no type or storage class
fib_table.c:7: warning: type defaults to ‘int’ in declaration of ‘Error’
fib_table.c:7: warning: type defaults to ‘int’ in declaration of ‘error’
fib_table.c:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘data’
fib_table.c:107: warning: ISO C does not allow extra ‘;’ outside of a function
make[2]: *** [fib_table.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

在运行“make”时

我的configure命令是“./configure --prefix = / Users / daniel / gmp --build = i386-linux”

1 回答

  • 1

    make distclean 为我解决了

相关问题