fatal error: stdio.h: 没有那个文件或目录,Ubuntu,linux(2023)

编程入门 行业动态 更新时间:2024-10-09 02:28:10

fatal error: stdio.h: 没有那个<a href=https://www.elefans.com/category/jswz/34/1771438.html style=文件或目录,Ubuntu,linux(2023)"/>

fatal error: stdio.h: 没有那个文件或目录,Ubuntu,linux(2023)

问题如下(简单的C代码):

 编译出错:

原因是gcc安装有问题:

安装的时候可能是这个语句出现了问题:

sudo apt-get install build-essential

 运行结果

 解决方法

sudo apt-get install aptitude

这个一路 y

sudo aptitude install libc6-dev

这个最开始要输入 n ,不要一路 y,实现降级。

成功效果

NiceNiceNiceNiceNiceNiceNiceNiceNiceNiceNiceNiceNiceNiceNiceNiceNiceNiceNiceNice


别的可能原因是:

(113条消息) gcc编译时报错 fatal error: stdio.h: 没有那个文件 解决方法_gcc编译时没有那个文件或目录_mumuwei_l的博客-CSDN博客

更多推荐

fatal error: stdio.h: 没有那个文件或目录,Ubuntu,linux(2023)

本文发布于:2024-03-12 02:20:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1730472.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   目录   stdio   fatal   error

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!