What you cannot find is a built-in C++ function that does this. Because there isn't any. C++ is a language and relies upon the underlying runtime/framework to provide file system and other support. This question has been asked on CodeProject a lot times as well, for example look here,
Zip Files in C++[
^]
One way to do is, using boost libraries. But again, you would have to make the pegs work correctly. Other way is by using other libraries that you have already seen. The solution is to properly write the functions that take the file, compress the stream, then write the stream as an archived file.
Share your code that you have tried, and we would be able to guide you further.
c++ - The best zip library with public domain license - Stack Overflow[
^]
C++ cross-platform zlib simplifer-wrapper - Stack Overflow[
^]
c++ - Cross platform file archiving - Stack Overflow[
^]
If you still do not know,
here is the website[
^] for one of the libraries that you said
you explore but didn't find a solution for, you can see that provide a sample app as well, you should download and see how that works.