写了一个helloworld C代码
文件名 hello.c
#include<stdio.h>
int main(int arg,char**agv)
{
printf("HelloWorld/n");
return 0;
}
用gcc编译 显示 error: stdio.h: No such file or directory?
原因:C的开发包没安装好,查查/usr/include中是否有stdio.h或stdlib.h
ubuntu 的系统居然没有 stdio.h ! 这也太残缺了吧。
废话少说,更新! sudo apt-get install build-essential
于是,问题解决!