How to make a zip file in Cocos2d-x?

Hello!
How can I zip a file using cocos2d-x ? Which library should I use?

There is cocos2d::ZipFile but that is just a reading helper class. I’m not sure what it is capable of in current versions.

There is zlib: http://www.zlib.net/