Sorun:
zlib kullanan bir C++ çalıştırılabilir dosyası derlemek istiyorsunuz ancak şöyle bir hata mesajı görüyorsunuz
output.txt
/usr/bin/ld: cannot find -lzlib
collect2: error: ld returned 1 exit statusÇözüm
-lzlib yerine -lz kullanın. zlib kütüphanesinin adı libzlib.so değil, libz.so‘dur!
Örnek:
build.sh
g++ -o ztest zpipe.c -lz
Check out similar posts by category:
C/C++
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow