delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/31/06:06:05

X-Spam-Check-By: sourceware.org
Date: Wed, 31 Jan 2007 12:05:37 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
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> <BAY106-F269CEF8859A96F38BE457CBA50 AT phx DOT gbl>
Mime-Version: 1.0
In-Reply-To: <BAY106-F269CEF8859A96F38BE457CBA50@phx.gbl>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019