急,求助,编译c程序的问题
发表于 : 2006-02-22 19:32
root@ubuntu:~# cc -o hello test.c
test.c:1:19: error: stdio.h: 没有那个文件或目录
test.c: 在函数 ‘main’ 中:
test.c:4: 警告:内建函数 ‘printf’ 不兼容的隐式声明
test.c:5: 警告:内建函数 ‘exit’ 不兼容的隐式声明
请问这是什么原因,怎样解决呢?
是没有库文件吗?怎样安装呢?
test.c:1:19: error: stdio.h: 没有那个文件或目录
test.c: 在函数 ‘main’ 中:
test.c:4: 警告:内建函数 ‘printf’ 不兼容的隐式声明
test.c:5: 警告:内建函数 ‘exit’ 不兼容的隐式声明
请问这是什么原因,怎样解决呢?
是没有库文件吗?怎样安装呢?