On Thursday 15 September 2005 23:40, Jeff Michels wrote:
Hello Donald,
Thank you for your reply. Here is the output I get:
cc -Wall -Wshadow -DBB_FEATURE_UDPCAST_FEC -D_FILE_OFFSET_BITS=64 -DUSE_SYSLOG -DNO_BB -c -o socklib.o socklib.c socklib.c: In function 'udpc_getSendBuf': socklib.c:280: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness socklib.c: In function 'udpc_getRcvBuf': socklib.c:293: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness socklib.c: In function 'udpc_setTtl': socklib.c:323: error: 'SOL_IP' undeclared (first use in this function) socklib.c:323: error: (Each undeclared identifier is reported only once socklib.c:323: error: for each function it appears in.) socklib.c: In function 'mcastOp': socklib.c:368: error: 'SOL_IP' undeclared (first use in this function) make: *** [socklib.o] Error 1
Thank you for your help,
Jeffrey Michels
Try inserting the following 3 lines after the #include's in socklib.c and see whether it helps:
#ifndef SOL_IP #define SOL_IP IPPROTO_IP #endif
Regards,
Alain