Unable to instal zlib package

Hello,
I set up a MSVC toolchain on a windows 11 system, it’s all running well with 4.14 and after the installation of some packages I ran into problem with the zlib package. It needs a rebuild and my actual c compiler is the Microsoft CL and it can’t handle the WExtra option. Any solution.?

PS: I’ve used “opam install zlib”

Looking at the source, we see

This is a typical example of a project that is incompatible with MSVC as written because it uses GCC-specific flags in its build system. So there is no easy solution to your problem, other than fixing the package build instructions (and ideally upstreaming the changes).

Cheers,
Nicolas

3 Likes