- 论坛徽章:
- 0
|
我现在正在学习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' |
|