我编写了个hello.c,内容如下:
#include <stdio.h>
int main(void)
{
printf("hello world\n");
return 0;
}
用一下命令编译:
gcc hello.c -o hello
出现如下错误,谁能指导下我啊?
hello.c:1:19: 错误: stdio.h:No such file or directory
hello.c: 在函数 ‘main’ 中:
hello.c:4: 警告: 隐式声明与内建函数 ‘printf’ 不兼