I have code in which, I have got compressed data and I need to uncompress it.
I am using zlib for this
I have done:
#include <zlib.h>
in my .cpp file.
Now, when I compile it, I get the error:
undefined reference to `uncompress_gzip’
Do, I need to link with some lib?
Thanks,
sg
You need to link it to zlib. Without knowing what compiler you are using, I’ll just use GCC: