请教一个非常弱智的问题

软件和网站开发以及相关技术探讨
回复
Furson
帖子: 24
注册时间: 2008-03-30 15:37

请教一个非常弱智的问题

#1

帖子 Furson » 2008-04-12 0:01

我怎么样才能在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$
contracted
帖子: 2
注册时间: 2008-01-01 9:50

#2

帖子 contracted » 2008-04-21 11:03

libc,build-essential等这些都装上了吗?
回复