This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cannot use zlib with Mingw


fabrizio_ge-wolit@tiscali.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.

*Don't* do this. To get this to work, you will need to compile a Mingw zlib.
Although Cygwin provides a minimal Mingw environment, *you cannot use
libraries compiled for Cygwin in -mno-cygwin compilation*.

Max.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]