Yes, sure, zlib is the basic library and it has additional bindings other languages as listed on the webpage as eg gzstream providing a C++ wrapper to the gz*
functions.
zlib, being a C-language library, is also extremely portable and cross-platform. See the webpage for links to Solaris, SCO, BeOS, MaxOS, OS/2 (!!), Palm Pilot, Newton (!!), Windows CE (!!), Blackberry, Windows, .Net, ... versions.