我已經當根據http://code.google.com/p/ziparchive/wiki/PageName編譯ZipArchive庫編譯錯誤
"_OBJC_CLASS_$_ZipArchive", referenced from:
UPDATE
包括 libz.1.2.3.dylib
插入碼之後
ZipArchive* za = [[ZipArchive alloc] init];
錯誤
我已經包括ZipArchive文件夾來投影,和框架libz.1.2.3.dylib。
然後我嘗試解壓iphone上的文件,但它錯誤的框架。如何解決它?
Ld build/ePUBreader.build/Debug-iphoneos/ePUBreader.build/Objects-normal/armv7/ePUBreader normal armv7
cd /Users/ragopor/Desktop/ePUBreader
setenv IPHONEOS_DEPLOYMENT_TARGET 4.0
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk -L/Users/ragopor/Desktop/ePUBreader/build/Debug-iphoneos -F/Users/ragopor/Desktop/ePUBreader/build/Debug-iphoneos -filelist /Users/ragopor/Desktop/ePUBreader/build/ePUBreader.build/Debug-iphoneos/ePUBreader.build/Objects-normal/armv7/ePUBreader.LinkFileList -dead_strip -miphoneos-version-min=4.0 -framework Foundation -framework UIKit -framework CoreGraphics -framework StoreKit -lz.1.2.3 -o /Users/ragopor/Desktop/ePUBreader/build/ePUBreader.build/Debug-iphoneos/ePUBreader.build/Objects-normal/armv7/ePUBreader
Undefined symbols:
"_OBJC_CLASS_$_ZipArchive", referenced from:
objc-class-ref-to-ZipArchive in ePUBreaderAppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
我有類似的問題。你能解決這個問題嗎? – 2010-10-17 21:25:02