Undefined reference to 'inflateInit2_'

前端 未结 2 1915
猫巷女王i
猫巷女王i 2020-12-17 22:43

I\'m using Code Blocks IDE and I want to install Tiled Map Editor for SFML. So, I downloaded the source and imported it to my project. Unfortunately, the build finished with

相关标签:
2条回答
  • 2020-12-17 23:37

    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

    0 讨论(0)
  • 2020-12-17 23:47

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

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

    0 讨论(0)
提交回复
热议问题