Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <3.0.6.32.20020215112457.00916df0@pop3.bmlv.gv.at> X-Sender: marek AT pop3 DOT bmlv DOT gv DOT at X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Fri, 15 Feb 2002 11:24:57 +0100 To: cygwin AT cygwin DOT com From: "Ph. Marek" Subject: Problem compiling a multicast program Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Hello everybody! 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 - address invalid. 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 #include But since I need some other things as well I also try #include 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. Regards, Phil -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/