首页 > 代码库 > cocos: 链接错误: _lz_adler32 in liblibquickmac.a

cocos: 链接错误: _lz_adler32 in liblibquickmac.a

错误:

Undefined symbols for architecture x86_64:
"_adler32", referenced from:
_lz_adler32 in liblibquickmac.a(lua_zlib.o)
_png_icc_set_sRGB in libcocos2d Mac.a(png.o)
"_adler32_combine", referenced from:
_lz_adler32 in liblibquickmac.a(lua_zlib.o)

 

解决:

在cocos2d_libs.xcodeproj工程的Link Binary with Libraries中添加上zlib库即可。

zlib库在external/zlib中

cocos: 链接错误: _lz_adler32 in liblibquickmac.a