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 Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 28 Dec 2002 21:25:27 +0100 Message-ID: <3E00A2010000CAD1@mail-8.tiscalinet.it> From: fabrizio_ge-wolit AT tiscali DOT it Subject: Cannot use zlib with Mingw To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id gBTK22g15824 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 int main(){ return 0; } and compile it with gcc -c -mno-cygwin .c The error is "zlib.h: No such file or directory". No problems at all if gcc -c .c is launched) Is there a way to get round this problem? __________________________________________________________________ Tiscali ADSL: abbonati entro il 31 gennaio. Non paghi l'attivazione. Non paghi il primo mese. http://www.tiscali.it/adsl -- 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/