c - 标准输入输出.h : No such file or directory

标签 c xcode macos gcc stdio

我明白了。编译一个简单的 ciao.c 程序时出错

 In file included from ciao.c:1:
/usr/local/lib/gcc/x86_64-apple-darwin18.5.0/8.3.0/include-fixed/stdio.h:78:10: fatal error: _stdio.h: No such file or directory
 #include <stdio.h>
          ^~~~~~~~~~
compilation terminated.

我已经安装了 Xcode、命令行工具和您想要的东西,但是没有。

#include <stdio.h>
int main()
{
    printf("Hello, World!");
    return 0;
}

你能帮帮我吗?

最佳答案

重命名 <_stdio.h><stdio.h> .

附言这是更新问题的更新答案:

尝试使用 xcode-select --install 重新安装 Xcode .

关于c - 标准输入输出.h : No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58103092/

相关文章:

iphone - 重置内容插入后如何设置滚动偏移?

swift - NSImageView 的连续旋转(因此它看起来是动画的)

macos - 将正在运行的进程附加到 Mac 中的终端

php - Mac OS X - 重新安装 Apache/PHP/MySQL 服务器的全新/干净副本

c - for_each_process - 它是否也遍历线程和进程?

c++ - 无法设置本地 C++ 开发环境

c - 使船舶出现在命令提示符上时遇到问题!

ios - UICollectionView 在调用 cellForRowAtIndexPath 时移动 super View

无法在 linux 中绑定(bind)套接字

c - 链表——节点的内存地址