我怎么样才能在Ubuntu下做C开发呢?
我发现,现在我写了一个非常简单的程序,都没有办法跑起来:
源文件:
#include <stdio.h>
int main()
{
printf("hello, world");
return 8;
}
furson@Furson:~/src$ gcc test.c
test.c:1:19: 错误: stdio.h:No such file or directory
test.c: 在函数 ‘main’ 中:
test.c:4: 警告: 隐式声明与内建函数 ‘printf’ 不兼容
furson@Furson:~/src$
请教一个非常弱智的问题
-
- 帖子: 24
- 注册时间: 2008-03-30 15:37
-
- 帖子: 2
- 注册时间: 2008-01-01 9:50