delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/25/16:57:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Mon, 25 Nov 2002 16:57:45 -0500
From: Christopher Faylor <cgf-noreply AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: impure_ptr/Mingw and cygwin
Message-ID: <20021125215745.GA5723@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3DE177C0 DOT 4000901 AT Salira DOT com> <Pine DOT LNX DOT 4 DOT 21 DOT 0211250943130 DOT 7231-100000 AT gremlin DOT fruitbat DOT org> <3DE29314 DOT 8040102 AT Salira DOT com>
Mime-Version: 1.0
In-Reply-To: <3DE29314.8040102@Salira.com>
User-Agent: Mutt/1.5.1i

On Mon, Nov 25, 2002 at 01:16:04PM -0800, Andrew DeFaria wrote:
>So the question now is: How do I satisfy my need for getopt and still 
>produce objects without _impure_ptr's?

You find some native windows getopt, of course.

>Ah ha!

Yes.  Don't include the cygwin headers when you're compiling with
-mno-cygwin.

>$ grep impure /usr/include/*.h
>/usr/include/stdio.h:#define    stdin   (_impure_ptr->_stdin)
>/usr/include/stdio.h:#define    stdout  (_impure_ptr->_stdout)
>/usr/include/stdio.h:#define    stderr  (_impure_ptr->_stderr)
>
>Hmmm... Changed options to:
>
>/bin/gcc -c -g -mno-cygwin -I. -I../../include -I/usr/include/mingw 
>-I/usr/include -DCYGWIN mksf.c
>cc1: warning: changing search order for system directory 
>"/usr/include/mingw"
>cc1: warning:   as it has already been specified as a non-system directory
>
>This works but why am I getting this warning?

Because you're using /usr/include/mingw and it is already included on
the command line by default.  That's what -mno-cygwin does.

cgf
--
Please do not send me personal email with cygwin questions or observations.
Use the resources at http://cygwin.com/ .

--
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/

- Raw text -


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