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 an error due to missing zlib library. I downloaded it and built again. This time I received an error that reads:
undefined reference to `inflateInit2_'|
undefined reference to `inflateEnd'|
undefined reference to `inflateEnd'|
On the Internet I found the advice to join the linker command -lz
, but the compiler refuses throwing the error: cannot find -lz. Does anyone know how to fix it?
zlib
somewhere your compiler can find it. On Linux, that means/usr/lib
or/usr/local/lib
(normallymake install
would handle this), and on Windows there is no standard way, but you either point your compiler to the DLL, or put the DLL inside your compiler'slib
folder (mingw
doesn't search thePATH
on windows last time I checked). What's your OS? – Ripe