Problem With Code from Steven's Book
Being that the author is now passed away I thought I would ask this question here.
I am trying to use the code in his book from the website. I am following the directions to the letter but am getting compilation errors in his code. I have downloaded the source code to a directory called GAME on my system. I open up a terminal, navigate to that folder and execute these commands.
gunzip -c unpv12e.tar.gz | tar -xvf -
cd unpv12e
./configure
cd lib
make
After this first call to make I get this 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: redefinition of `struct in_pktinfo''
make: *** [connect_nonb.o] Error 1
From there the rest of the make commands error out as well.
Any idea what could be causing this?
This is Red Hat Linux BTW.
Thanks,
Webby
Guess no one knows ![](sad.gif)
I''ve looked through it the best I can and I''ll be darned if I can spot the problem![](sad.gif)
One thing after another is going to keep me from working my way through this book!
Ohh well,
Webby
![](sad.gif)
I''ve looked through it the best I can and I''ll be darned if I can spot the problem
![](sad.gif)
One thing after another is going to keep me from working my way through this book!
Ohh well,
Webby
Which book are you talking about?
LostLogic
www.lostlogic.com
Author, Multiplayer Game Programming
Author, Strategy Game Programming with Direct X 9 (Not yet released)
LostLogic
www.lostlogic.com
Author, Multiplayer Game Programming
Author, Strategy Game Programming with Direct X 9 (Not yet released)
LostLogicwww.GamerOutfit.comXBox 360 Community Games Reviews and NewsExisled - 2D/3D Shooter for XBox 360
Sorry,
Unix Network Programming: Volume 1
The source code is contained at
http://www.kohala.com/start/unpv12e.html
It is gzipped and tarred. There are readme instructions on how to open and compile it. Some people get it to work just fine but my Red Hat Linux box gives the errors from my first message.
I''ve resorted to finding the pieces of code I need from his files as I need them but it is proving very tedious and unproductive. Would be great if I could get the original code to work. Mainly his unp.h file that is massive and used in every single example to include all other necessary files.
Thanks for the help,
Webby
Unix Network Programming: Volume 1
The source code is contained at
http://www.kohala.com/start/unpv12e.html
It is gzipped and tarred. There are readme instructions on how to open and compile it. Some people get it to work just fine but my Red Hat Linux box gives the errors from my first message.
I''ve resorted to finding the pieces of code I need from his files as I need them but it is proving very tedious and unproductive. Would be great if I could get the original code to work. Mainly his unp.h file that is massive and used in every single example to include all other necessary files.
Thanks for the help,
Webby
February 24, 2004 04:24 AM
There are a number of references to this on the ''net.
Most seem to say that you can just comment out the definiton of in_pktinfo which is clashing with something in one of the system files (it seems t be used in UDP programs only and the system version can cope.
Use a google search using
+"unp.h" +lib +error +"in_pktinfo"
Most seem to say that you can just comment out the definiton of in_pktinfo which is clashing with something in one of the system files (it seems t be used in UDP programs only and the system version can cope.
Use a google search using
+"unp.h" +lib +error +"in_pktinfo"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement