zhengqi@zhengqi-laptop:~$ gcc hello.c -o hello
hello.c:2:19: 错误: stdio.h:没有该文件或目录
hello.c: 在函数‘main’中:
hello.c:6: 警告: 内建函数 ‘printf’ 不兼容的隐式声明
编译器说找不到头文件请问如何解决?
版本号4.2.3,尝试过用-l 指定目录也不行。(不是很清楚GCC的头文件库到底放在哪里,于TC的库有什么区别)
hello.c:
#include <stdio.h>
int main(void)
{
printf("hello world");
return 0;
}
关于hello.c的问题
-
- 帖子: 2
- 注册时间: 2008-07-29 0:10
- leeaman
- 帖子: 30702
- 注册时间: 2007-02-02 18:14
- 系统: debian sid
- newman0708
- 帖子: 188
- 注册时间: 2007-09-22 13:09