Undefined reference to 'inflateInit2_'

大兔子大兔子 提交于 2019-11-29 10:27:22

Use the option -L<path> to tell the compiler where to find libz.so.x.y.z.

For your reference: http://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html

you can see where your zlib is installed like this :

/sbin/ldconfig -p| grep libz.so

it should find one or more entries if installed, otherwise it will return blank line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!