There is a task to unpack data packed with zlib and this is done with just one function from this library. But if I have only one function from the entire library, then it seems to me not to be a very good idea to pull it all up. Should there be any header-on or something like that, containing a function for opening only?

  • as an option, add statics - all unnecessary linker should be thrown out ... but if you link it to another, or perhaps there will be some difficulties ... in any case, IMHO libz is not something monstrous and huge that needs to be avoided .. - Fat-Zer
  • @ Fat-Zer is an unacceptable solution, since I want to abandon the use of zlib, and not "facilitate" the assembly - Andrej Levkovitch
  • then what is the point of not zlib? .. as a variant from google - miniz . - Fat-Zer
  • @Fat-Zer you probably did not read the question: I do not need to replace one library with another - I just need one (!) Function from the library. Since she is alone, I don’t want to pull the entire library after her, but to take some header-oni that implements only this function. I wrote this in question - Andrej Levkovitch Nov.
  • one
    I have already proposed two similar options, in my opinion, but you didn’t like it;) ... I can still offer something banal and mockingly like “tearing away the necessary functions from the original library and stuffing them into the header, assigning inline - Fat- Zer

0