由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - unix network programming (Stevens) book V1 (2ed, 3ed) code cannot run on Linux
相关主题
Unix Network Programmingmultithread app的design要注意哪些问题?
socket re-connection problem想知道家在linux下都有什么c++ socket library
有没有人在Vista下试过UDP广播Windows多媒体编程入门问题
C语言教材求推荐Question about Base Tag...
一个socket中select函数的问题转:学习C++应该看的书(孙耀文)
python question: A socket operation was attempted to an unreachable networkHow to get local hostname under linux?
C10M 练习2: 空TCP 连接,1M per 4G RAMUNIX DATAGRAM 类型socket最大报文长度多少?
请推荐一本网络编程的入门书(c/c++)《Java语言程序设计》(Introduction to Java Programming, Comprehensive Version)第8版[PDF]
相关话题的讨论汇总
话题: ntop话题: inet话题: 226话题: error话题: nonb
进入Programming版参与讨论
1 (共1页)
l******9
发帖数: 579
1
I am trying to download and run the c code on Linux for
UNIX Network Programming, Volume 1, Second Edition: Networking APIs: Sockets
and XTI, Prentice Hall, 1998, ISBN 0-13-490012-X. It is by W. Stevens
Richard
http://kohala.com/start/unpv12e/unpv12e.tar.gz
But, when I build the code, I got error:
gcc -g -O2 -D_REENTRANT -Wall -c -o connect_nonb.o connect_nonb.c
In file included from connect_nonb.c:1:
unp.h:114: error: redefinition of âstruct in_pktinfoâ
make: *** [connect_nonb.o] Error 1
I commented out struct in_pktinfo. Then I got new errors:
gcc -g -O2 -D_REENTRANT -Wall -c -o in_cksum.o in_cksum.c
gcc -g -O2 -D_REENTRANT -Wall -c -o inet_ntop.o inet_ntop.c
inet_ntop.c: In function âinet_ntopâ:
inet_ntop.c:61: error: argument âsizeâ doesnât match
prototype
/usr/include/arpa/inet.h:67: error: prototype declaration
make: *** [inet_ntop.o] Error 1
I do not want to debug for the whole 575 files one by one.
Where can I get new code without these errors ? the new version book has bug
-free code ?
The old code is only for old OS.
Thanks
1 (共1页)
进入Programming版参与讨论
相关主题
《Java语言程序设计》(Introduction to Java Programming, Comprehensive Version)第8版[PDF]一个socket中select函数的问题
《Java语言程序设计》(Introduction to Java Programming, Comprehensive Version)第8版[PDF]python question: A socket operation was attempted to an unreachable network
《汇编语言程序设计》第6版[PDF]C10M 练习2: 空TCP 连接,1M per 4G RAM
问一个Linux无法监听指定端口的问题请推荐一本网络编程的入门书(c/c++)
Unix Network Programmingmultithread app的design要注意哪些问题?
socket re-connection problem想知道家在linux下都有什么c++ socket library
有没有人在Vista下试过UDP广播Windows多媒体编程入门问题
C语言教材求推荐Question about Base Tag...
相关话题的讨论汇总
话题: ntop话题: inet话题: 226话题: error话题: nonb