This is the mail archive of the
mailing list for the Cygwin project.
Problem compiling a multicast program
- From: "Ph. Marek" <marek at bmlv dot gv dot at>
- To: cygwin at cygwin dot com
- Date: Fri, 15 Feb 2002 11:24:57 +0100
- Subject: Problem compiling a multicast program
I tried to compile a program which uses setsockopt(... IP_MULTICAST_LOOP ...).
Works fine with Linux and AIX.
Compilation on Win32 works, but if running I get a error from this line -
Seeing that there are several include files having IP_MULTICAST_LOOP
defined and that I am using the old #defines I follow the suggestions found
in the .h and use
But since I need some other things as well I also try
But from then on I have problems compiling, ie that gcc says "timerclear
redefined" (in sys/time.h & w32api/winsock2.h) and several others.
In the FAQ only the reverse way is described - using native Winsock. But I
need as much UNIX compatibility as possible.
So - to summarise - I think I need winsock2. Only winsock2.h is not enough.
What is the correct way to do that?
Which files MAY I include and in which order?
Thanks for all help.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html