X-Spam-Check-By: sourceware.org Date: Wed, 31 Jan 2007 12:05:37 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: sockets pbs.. Message-ID: <20070131110537.GT27843@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20070131103756 DOT GP27843 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jan 31 10:52, jano trouba wrote: > > And also I do not understand : > > >> cc -Wall -D_POSIX_SOURCE -D__rtems__ -mno-cygwin -mwindows > >-I../include/ > > ^^^^^^^^^^^ > >> [...] > >> So did I miss a flag in order to compile, or a bad location, or is it a > >bug > >> ?? > > > >No, you used a flag too many. The Cygwin header files and Cygwin > >capabilities don't make any sense when trying to build a native Windows > >application. > > > > the -mno-cygwin flag means NOT to use cygwin-sepcific things, no ? > > So how come by including sys/socket.h do I find myself including > cygwin/socket.h ????? sys/socket.h is also a Cygwin thingy. Only the include files under /usr/include/w32api and /usr/include/mingw are useful for non-cygwin apps. If you want to use the POSIX headers, build a Cygwin app. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/