[Zlib-devel] zlib 1.2.4.1 beta
Vincent Torri
vtorri at univ-evry.fr
Sun Mar 28 17:19:27 EDT 2010
On Sun, 28 Mar 2010, Mark Adler wrote:
> On Mar 28, 2010, at 1:16 PM, Vincent Torri wrote:
>> 1) is it possible to use the toplevel Makefile with MSYS/MinGW to build the DLL ?
>
> I suspect so. I believe that some message is being issued when "Checking for shared library support...". Patches are welcome.
i'll check that
>> 2) in win32/Makefile.gcc, the note line 23 says to change the dll name to zlib1.dll. But, line 27, the name is zlib1.dll
>
> Actually the comment says you should change the name *from* zlib1.dll.
>
> I don't know why it says that, so if the comment needs to be changed, please let me know.
i don't know at all. Maybe someone else knows what to do
>> 4) When i try to compile zlib with Visual Studio Express 2008, all the projects are ignored. I have to change, in the properties of the solution, the platform (switched from Itanium to win32).
>
> I will leave it to the studio meisters to figure that out.
>
>> I also have to hack zconf.h so that unistd.h is not included.
>
> Why?
because there is no unistd.h file distributed with Visual Studio.
>> b) with mingw32ce (didn't try with mingw):
>>
>> minigzip.c: In function 'main':
>> minigzip.c:389: warning: implicit declaration of function 'setmode'
>
>
> In minigzip.c is this:
>
> #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__)
> # include <fcntl.h>
> # include <io.h>
> # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
> #else
> # define SET_BINARY_MODE(file)
> #endif
>
> So if setmode() isn't defined in fcntl.h (or io.h), then where is it defined?
it seems that it is declared in stdlib.h :
http://msdn.microsoft.com/en-us/library/ms861138.aspx
Vincent Torri
More information about the Zlib-devel
mailing list