编译GMP交叉编译问题
我正在为我的 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 --prefix=/Users/daniel/gmp --build=i386- linux”
I'm compiling gnu gmp for my mac/linux cross compiler but i'm getting this error:
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
when running "make"
My configure command is "./configure --prefix=/Users/daniel/gmp --build=i386-linux"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
make distclean
为我解决了这个问题make distclean
solved it for me