免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1267 | 回复: 0
打印 上一主题 下一主题

求教高手 unp.h文件的一些问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-31 19:46 |只看该作者 |倒序浏览
我现在正在学习unix网络编程,在作者的主页上下载了unp.h文件的原代码,
用gcc文件编译之后确出现了很多的错误,希望高手指点.错误如下:

unp.h.c:7:75: ../config.h: 没有那个文件或目录
unp.h.c:114: redefinition of `struct in_pktinfo'
unp.h.c:200:36: ../lib/addrinfo.h: 没有那个文件或目录
unp.h.c:214: redefinition of `struct timespec'
unp.h.c:294: conflicting types for `gai_strerror'
/usr/include/netdb.h:468: previous declaration of `gai_strerror'
unp.h.c:298: conflicting types for `getnameinfo'
/usr/include/netdb.h:474: previous declaration of `getnameinfo'
unp.h.c:302: conflicting types for `gethostname'
/usr/include/unistd.h:752: previous declaration of `gethostname'
unp.h.c:322: conflicting types for `inet_aton'
/usr/include/arpa/inet.h:74: previous declaration of `inet_aton'
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP