我在Netbeans和OSX上遇到多个构建错误,它们似乎都与libminizip有关-我想我还记得我在安装mini zip时读到的一些东西,它安装在diff目录中而不与默认OSX冲突。等
这些是我的构建错误-有人可以提供帮助吗?
cd '/Users/owner/NetBeansProjects/zlib/CppApplication_2' /
usr / bin / make - f Makefile CONF = Debug "/Applications/Xcode.app/Contents/Developer/usr/bin/make" - f nbproject / Makefile - Debug.mk QMAKE = SUBPROJECTS = .build - conf "/Applications/Xcode.app/Contents/Developer/usr/bin/make" - f nbproject / Makefile - Debug.mk dist / Debug / GNU - MacOSX / cppapplication_2
mkdir - p dist / Debug / GNU - MacOSX
g++ - o dist / Debug / GNU - MacOSX / cppapplication_2 build / Debug / GNU - MacOSX / _ext / 132 a8927 / main.o / Users / owner / Downloads / minizip - master / libminizip.a / usr / lib / libbz2.dylib / usr / lib / libstdc++.dylib
Undefined symbols
for architecture x86_64:
"_CFArrayGetValueAtIndex", referenced from:
_mz_crypt_sign in libminizip.a(mz_crypt_apple.c.o)
"_CFDataCreate", referenced from:
_mz_crypt_sign in libminizip.a(mz_crypt_apple.c.o)
"_CFDataGetBytePtr", referenced from:
_mz_crypt_sign in libminizip.a(mz_crypt_apple.c.o)
_mz_crypt_sign_verify in libminizip.a(mz_crypt_apple.c.o)
"_CFDataGetLength", referenced from:
_mz_crypt_sign in libminizip.a(mz_crypt_apple.c.o)
_mz_crypt_sign_verify in libminizip.a(mz_crypt_apple.c.o)
"_CFDictionaryCreate", referenced from:
_mz_crypt_sign in libminizip.a(mz_crypt_apple.c.o)
ld: symbol(s) not found
for architecture x86_64
clang: error: linker command failed with exit code 1(use - v to see invocation)
make[2]: ** * [dist / Debug / GNU - MacOSX / cppapplication_2] Error 1
make[1]: ** * [.build - conf] Error 2
make: ** * [.build - impl] Error 2
BUILD FAILED(exit value 2, total time: 347 ms)
我设置为库文件的C ++链接器是
/usr/lib/libbz2.dylib