版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/fjh658/article/details/52573742
xcode 升级了, 发现很多头文件找不到了
clang的版本
源码
#include <stdio.h>
int main() {
printf("Hello world\n");
}
- 代码报错
clang test.c -o test
test.c:1:9: fatal error: 'stdio.h' file not found
#include<stdio.h>
如何解决?
主要是缺少了Tool chain
xcode-select --install #重点
clang -### test.c -o test
-###
Print (but do not run) the commands to run for this compilation