LINUX下C编程
#include<stdio.h>
int main()
{
printf("hello c");
return 0;
}
gcc -g -o hello hello.c
出现错误提示
tomy@tomy-desktop:~$ gcc -g -o hello hello.c
hello.c:1:18: error: stdio.h: No such file or directory
hello.c: In function ‘main’:
hello.c:5: warning: incompatible implicit declaration of built-in function ‘printf’
以前没在LINUX下进行C编程 这个在WINDOWS 用 GCC 能够编译通过 但在LINUX下面却提示找不到头文件呢? 请问是为什么,如何解决?