[问题]怎么在unbutu下面搭建编译环境

重复贴和参考价值不大的帖子,版主维护
回复
shiwbl
帖子: 4
注册时间: 2007-11-10 22:54
送出感谢: 0
接收感谢: 0

[问题]怎么在unbutu下面搭建编译环境

#1

帖子 shiwbl » 2007-11-14 16:36

以前使用REDHAT的时候,安装GCC都是默认安装的。这几天装了UNBUTU,在编译自己编写的程序时出现了下面的问题,大概的意思我能看懂,我想知道怎么在unbutu下面搭建编译环境,我使用的版本是7.10的桌面版,需要安装那些软件包,谢谢

代码: 全选

server.c:1:22: error: sys/param.h: No such file or directory
server.c:2:18: error: stdio.h: No such file or directory
server.c:3:19: error: stdlib.h: No such file or directory
server.c:4:18: error: errno.h: No such file or directory
server.c:5:19: error: string.h: No such file or directory
server.c:6:22: error: sys/types.h: No such file or directory
server.c:7:23: error: netinet/in.h: No such file or directory
server.c:8:23: error: sys/socket.h: No such file or directory
server.c:9:22: error: arpa/inet.h: No such file or directory
server.c:10:18: error: netdb.h: No such file or directory
server.c: In function ‘init_daemon’:
server.c:15: error: ‘pid_t’ undeclared (first use in this function)
server.c:15: error: (Each undeclared identifier is reported only once
server.c:15: error: for each function it appears in.)
server.c:15: error: expected ‘;’ before ‘pid’
server.c:17: error: ‘pid’ undeclared (first use in this function)
server.c:18: warning: incompatible implicit declaration of built-in function ‘exit’
server.c:22: error: ‘NOFILE’ undeclared (first use in this function)
server.c: In function ‘main’:
server.c:34: error: storage size of ‘s’ isn’t known
server.c:35: error: storage size of ‘p’ isn’t known
server.c:39: error: ‘AF_INET’ undeclared (first use in this function)
server.c:39: error: ‘SOCK_STREAM’ undeclared (first use in this function)
server.c:42: warning: incompatible implicit declaration of built-in function ‘exit’
server.c:45: warning: incompatible implicit declaration of built-in function ‘bzero’
server.c:47: error: ‘INADDR_ANY’ undeclared (first use in this function)
server.c:58: warning: incompatible implicit declaration of built-in function ‘exit’
server.c:63: warning: incompatible implicit declaration of built-in function ‘exit’
server.c:69: warning: incompatible implicit declaration of built-in function ‘printf’
server.c:69: error: ‘errno’ undeclared (first use in this function)
server.c:71: warning: incompatible implicit declaration of built-in function ‘exit’
server.c:75: warning: incompatible implicit declaration of built-in function ‘exit’
server.c:77: warning: incompatible implicit declaration of built-in function ‘strcpy’
server.c:78: warning: incompatible implicit declaration of built-in function ‘strlen’
server.c:80: warning: incompatible implicit declaration of built-in function ‘exit’
server.c:83: warning: incompatible implicit declaration of built-in function ‘printf’
头像
chattan
论坛版主
帖子: 3922
注册时间: 2007-07-11 20:59
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 chattan » 2007-11-14 16:40

代码: 全选

sudo apt-get install build-essential
shiwbl
帖子: 4
注册时间: 2007-11-10 22:54
送出感谢: 0
接收感谢: 0

#3

帖子 shiwbl » 2007-11-14 16:47

OK我试试看 谢谢你
shiwbl
帖子: 4
注册时间: 2007-11-10 22:54
送出感谢: 0
接收感谢: 0

#4

帖子 shiwbl » 2007-11-14 16:52

已经解决 非常感谢。
我还有一个问题想请教一下2楼。
我输入法不能在EVA中输入中文,但是在FIREFOX中是正常的,我该怎么办?
头像
zxh998
帖子: 105
注册时间: 2007-11-01 13:11
送出感谢: 0
接收感谢: 0
联系:

#5

帖子 zxh998 » 2007-11-14 16:59

sudo apt-get install scim-qtimm
头像
chattan
论坛版主
帖子: 3922
注册时间: 2007-07-11 20:59
送出感谢: 0
接收感谢: 0
联系:

#6

帖子 chattan » 2007-11-14 17:58

shiwbl 写了:已经解决 非常感谢。
我还有一个问题想请教一下2楼。
我输入法不能在EVA中输入中文,但是在FIREFOX中是正常的,我该怎么办?
看我的BLOG我写得很详细 关于EVA的 不能输入中文以及崩溃的问题都可以解决!!

http://ubuntulinux.yo2.cn/archives/516396
回复

回到 “归档贴”