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:
gcc my.cpp -lz
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.