Search code examples
c++zipzlib

What is the relationship between zlib and minizip?


What is the relationship between zlib and minizip? When I download zlib I see minizip visual studio project as a part of the zlibvc solution in the windows enviroment.

enter image description here

  1. Not sure are these two different libraries or one is a component of other.
  2. If two different what is the use case of each

Solution

  • As I check on zlib FAQ:

    Q: I'm having a problem with the zip functions in zlib, can you help?

    A: There are no zip functions in zlib. You are probably using minizip by Giles Vollant, which is found in the contrib directory of zlib. It is not part of zlib. In fact none of the stuff in contrib is part of zlib. The files in there are not supported by the zlib authors. You need to contact the authors of the respective contribution for help.

    And the next one:

    Q: Can zlib handle .zip archives?

    A: Not by itself, no. See the directory contrib/minizip in the zlib distribution.

    So from above Q&A we can deduce that minizip is used by zlib to handle .zip files.