分页: 1 / 1

急,求助,编译c程序的问题

发表于 : 2006-02-22 19:32
jus18tin
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’ 不兼容的隐式声明

请问这是什么原因,怎样解决呢?
是没有库文件吗?怎样安装呢?

发表于 : 2006-02-27 9:28
windforest
把源代码贴出来看

发表于 : 2006-02-27 13:30
eexpress
gcc试试。stdio.h都找不到,纯粹没有路径设置而已。或者编译环境没全。

发表于 : 2006-03-02 9:36
fogywind
using namespace std?