LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 555|回复: 2

大家看看错误原因是什么

[复制链接]
发表于 2004-12-5 13:34:54 | 显示全部楼层 |阅读模式
操作系统ebian
gcc版本:gcc version 3.3.5 (Debian 1:3.3.5-2)

编译xmame时,如果在Makefile中打开网络支持,老是出错,提示如下:

src/unix/network.c: In function `_map_input_port':
src/unix/network.c:1829: error: `IPF_PLAYER2' undeclared (first use in this function)
src/unix/network.c:1829: error: (Each undeclared identifier is reported only once
src/unix/network.c:1829: error: for each function it appears in.)
src/unix/network.c:1830: error: `IPF_PLAYER3' undeclared (first use in this function)
src/unix/network.c:1831: error: `IPF_PLAYER4' undeclared (first use in this function)
src/unix/network.c:1844: error: `IPF_PLAYERMASK' undeclared (first use in this function)
src/unix/network.c:1847: error: `IPF_PLAYER1' undeclared (first use in this function)
make: *** [xmame.obj/unix.x11/network.o] 错误 1

如果去掉网络支持,就能够成功编译.记得以前用redhat/fedora时重没出过网络模块编译出错的问题,我本来怀疑是少装了什么库文件,但是打开network.c后,里面所有include 的头文件我都在/usr/share/include下面找得到.现把network.c也传上来,请高手帮忙看看.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-12-5 15:15:59 | 显示全部楼层
 楼主| 发表于 2004-12-5 18:59:01 | 显示全部楼层
明白了,谢谢斑竹.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表