On Mon, Jul 25, 2011 at 6:57 AM, Stefan Vielberg (ipsolutions.de) <
[email protected]> wrote:
> problems using ziparchive****
>
> ** **
>
> ** **
>
> -v -gcc_flags "-L${ProjectDir} -ziparchive -lz.1.2.3 -framework Foundation
> -force_load ${ProjectDir}/libziparchive.a"****
>
> ** **
>
> and switched link behavior to: Link SDK assemblies only****
>
> ** **
>
> tried to include ziparchive. Get the following error messages during
> compilation. Any ideas ?****
>
> ** **
>
> ** **
>
> /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
> -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2
> -miphoneos-version-min=4.3 -isysroot
> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
> /var/folders/KG/KGdlHHlCEPyY+IKaEI5mRE+++TI/-Tmp-/tmp1bd4d1d9.tmp/main.x86.o
> -o /var/folders/KG/KGdlHHlCEPyY+IKaEI5mRE+++TI/-Tmp-/tmp1bd4d1d9.tmp/Table01
> -framework CFNetwork -framework Foundation -framework UIKit -framework
> AudioToolbox -lz -u _mono_pmip -u _CreateZStream -u _CloseZStream -u _Flush
> -u _ReadZStream -u _WriteZStream -liconv -lmono-2.0 -lmonotouch
> -L/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib -u
> _catch_exception_raise -L/Users/apple/Projects/Table01/Table01 -ziparchive
> -lz.1.2.3 -framework Foundation -force_load
> /Users/apple/Projects/Table01/Table01/libziparchive.a****
>
> ** **
>
> Undefined symbols:****
>
> "___gxx_personality_v0", referenced from:****
>
> ___gxx_personality_v0$non_lazy_ptr in libziparchive.a(ZipArchive.o)*
> ***
>
> (maybe you meant: ___gxx_personality_v0$non_lazy_ptr)****
>
> ld: symbol(s) not found****
>
> collect2: ld returned 1 exit status****
>
> Process exited with code 1, command:****
>
> /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
> -arch i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2
> -miphoneos-version-min=4.3 -isysroot
> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
> /var/folders/KG/KGdlHHlCEPyY+IKaEI5mRE+++TI/-Tmp-/tmp1bd4d1d9.tmp/main.x86.o
> -o /var/folders/KG/KGdlHHlCEPyY+IKaEI5mRE+++TI/-Tmp-/tmp1bd4d1d9.tmp/Table01
> -framework CFNetwork -framework Foundation -framework UIKit -framework
> AudioToolbox -lz -u _mono_pmip -u _CreateZStream -u _CloseZStream -u _Flush
> -u _ReadZStream -u _WriteZStream -liconv -lmono-2.0 -lmonotouch
> -L/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib -u
> _catch_exception_raise -L/Users/apple/Projects/Table01/Table01 -ziparchive
> -lz.1.2.3 -framework Foundation -force_load
> /Users/apple/Projects/Table01/Table01/libziparchive.a****
>
> ** **
>
> ** **
>
> included the following statement as extra argument in options -> iPhone
> Build****
>
> ** **
>
>
>
Looks like you're linking C++ code and forgot to add -cxx to mtouch build
options. Add it in Project Options -> iPhone Build -> (General) Additional
mtouch arguments.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch