configure:error:找不到正常工作的编译器,有关详细信息,请参阅config.log

时间:2012-12-26 14:47:40

标签: ios cross-compiling

我正在尝试将gmp库移植到ios 我在脚本中设置了所有变量,编译器,库,SDK的所有路径 一切都是有效的和现有的

以幸福结束
configure: error: could not find a working compiler, see config.log for details

config.log包含一个错误,即不编译`int main(){return 0;}'。 这个脚本适用于几个libs都准备好了。 这是因为arm-apple编译器吗?

我该怎么办?

1 个答案:

答案 0 :(得分:0)

如果有人需要回答这个:
据我所知,我通过使用includedir和libdir定义host = arm-apple-darwin和flags(ld和cc)来配置参数来处理此错误。