美文网首页
iOS导入zlib linker -error "_inflat

iOS导入zlib linker -error "_inflat

作者: 塞北孤雁 | 来源:发表于2016-06-17 16:16 被阅读0次

error when import zlib in iPhone sdk
当编译时出现这底下这些错误:

"_inflate", referenced from: XXX

"deflateInit", referenced from: XXX
"inflateInit", referenced from: XXX
"_deflateEnd", referenced from: XXX
"_inflateEnd", referenced from: XXX

说明你没有链接zlib库。

在项目的Targets->build Settings->Other Linker Flags 添加 -lz,然后clean 项目,重新编译就好了,如下图:


屏幕快照 2016-06-17 下午4.14.53.png

相关文章

网友评论

      本文标题:iOS导入zlib linker -error "_inflat

      本文链接:https://www.haomeiwen.com/subject/jigdkttx.html