[Zlib-devel] zlib 1.2.4 released!
Török Edwin
edwintorok at gmail.com
Wed Mar 17 06:20:01 EDT 2010
[disclaimer: I'm not a Win32 coder, I'm a Linux coder]
On 03/17/2010 10:53 AM, Gilles Vollant wrote:
> with Visual C++ 2008 or 2010, using /MT you can use statically linked
> runtime
I'm told that is exactly what NOT to do:
"as soon as you pass a FILE or a fd or any other HeapAlloc object it
will detect a heap corruption and die"
http://msdn.microsoft.com/en-us/library/ms235460.aspx
I don't think a single zlib DLL will work anyway.
Passing file descriptors between mismatching CRT versions won't work.
You'd probably need one DLL for each CRT version.
This is exactly why in ClamAV we build zlib from source, and link it in
statically on Windows.
The situation might be different in VS 2010 beta, it may be possible to
build DLLs that work with other VS versions, I don't know
Best regards,
--Edwin
More information about the Zlib-devel
mailing list