当前位置: 首页 > news >正文

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!搞定!

在这里插入图片描述

别急!还有,学到了什么?linux上的开发错误,除了一些常见的,很多错误需要自己找原因,你就是一个完整的OS!


http://www.mrgr.cn/news/80656.html

相关文章:

  • OpenIPC开源FPV之Adaptive-Link天空端代码解析
  • 修改vscode设置的原理
  • docker springboot 运维部署详细实例
  • Node.js day-01
  • 力扣189. 轮转数组
  • springboot controller get 如何获取参数
  • java error(2)保存时间带时分秒,回显时分秒变成00:00:00
  • 高并发 - 2.线程池
  • 大模型系列4--开源大模型本地部署到微调(WIP)
  • ubuntu系统版本安装docker容器
  • Kubeadm+Containerd部署k8s(v1.28.2)集群(非高可用版)
  • windows11 24H2 CSOL 闪退问题解决办法
  • Java通过反射破坏单例模式
  • Compose IO
  • Linux介绍与安装CentOS 7操作系统
  • JS实现简单的前端分页功能
  • Avalonia 开发环境准备
  • asp.net core发布配置端口号,支持linux
  • 使用qemu搭建armv7嵌入式开发环境
  • matlab绘图时设置左、右坐标轴为不同颜色
  • JVM性能优化一:初识内存泄露-内存溢出-垃圾回收
  • Linux Shell 脚本编程基础知识篇
  • 【蓝桥杯】46195.水仙花数
  • ARM学习(38)多进程多线程之间的通信方式
  • Visual Studio 2022 QT5.14.2 新建项目无法打开QT的ui文件,出现闪退情况
  • [spring]XML标签<bean>的二级标签