報錯:Undefined symbols for architecture i386 "_deflate"


You didn't include the libz.dylib where those functions are. Select the project node, select your target, go to the Build Phases tab, expand "Link Binaries With Libraries", add libz.dylib, and try again.


使用zlib的時候需要添加2個lib,因爲之前只家了一個lib,所以處問題了,libz.dylib & libbz2.1.0.dylib

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章