欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 汽车 > 时评 > configure错误:“C compiler cannot create executables“

configure错误:“C compiler cannot create executables“

2025/11/3 20:18:22 来源:https://blog.csdn.net/m0_37567738/article/details/144566826  浏览:    关键词:configure错误:“C compiler cannot create executables“

执行./configure命令出现如下奇怪的错误,百思不得姐:

在这里插入图片描述

./configure命令的日志文件为config.log,发生错误时,该文件的内容:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.configure:538: checking for gcc
configure:615: checking whether the C compiler (gcc  ) works
configure:629: gcc -o conftest    conftest.c  1>&5
configure:626:1: error: return type defaults to 'int' [-Wimplicit-int]626 | main(){return(0);}| ^~~~
configure: failed program was:
#line 625 "configure"
#include "confdefs.h"
main(){return(0);}

继续查看configure文件:

在这里插入图片描述

在main()函数前加"int",执行./configure,ok!搞定!

在这里插入图片描述

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词