您的位置:首页 > 其它

友盟统计时出的错误

2016-03-30 09:53 330 查看
"_compress2", referenced from:

+[UMANUtil deflatedDataPrefixedWith:level:source:] in libMobClickLibrary.a(UMANUtil.o)

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)





解决方法是:在Other Linker Flags里加入-lz然后再编译通过





类似的其他

"_compress2", referenced from:

"_inflateReset", referenced from:

"_inflateInit_", referenced from:

"_inflateEnd", referenced from:

"_inflateInit2_", referenced from:

均可以通过-lz来解决。

-lz 会让你的程序在编译的时候against the built-in zlib,从而解决问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: