delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/29/17:47:49

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: Sun, 29 Dec 2002 17:47:37 -0500
From: Christopher Faylor <cgf-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cannot use zlib with Mingw
Message-ID: <20021229224737.GA10971@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3E00A2010000CAD1 AT mail-8 DOT tiscalinet DOT it>
Mime-Version: 1.0
In-Reply-To: <3E00A2010000CAD1@mail-8.tiscalinet.it>
User-Agent: Mutt/1.5.1i

On Sat, Dec 28, 2002 at 09:25:27PM +0100, fabrizio_ge-wolit AT tiscali DOT it wrote:
>I was trying to compile a program which uses zlib with Mingw (i.e. with
>the flag -mno-cygwin) but the compilation failed because zlib.h could not
>be found. No problems with standard Cygwin compilation.
>
>Probably, if -mno-cygwin is used, only the directory /usr/include/mingw
>is searched, /usr/include is not. Well, the flag -I/usr/include could be
>added, but I am afraid some header files could conflict.
>
>To reproduce the problem: type this simple file
>
>#include <zlib.h>
>
>int main(){
>return 0;
>}
>
>and compile it with
>
>gcc -c -mno-cygwin <filename>.c
>
>The error is "zlib.h: No such file or directory". No problems at all if
>
>gcc -c <filename>.c
>
>is launched)
>
>Is there a way to get round this problem?

www.mingw.org?

zlib.h is part of cygwin.  Of course it can't be found if you say
-mno-cygwin.  It seems like many people assume that -mno-cygwin is some
magical way to get all of cygwin's functionality without the use of the
cygwin dll.  It isn't.  The libraries in /usr/lib and the include files
in /usr/include are cygwin files.  The files in /usr/lib/mingw and
/usr/include/mingw are provided for base mingw support.  If you need
more or have more detailed mingw questions, then the mingw mailing list
is the place to go.

cgf

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