Closed GoogleCodeExporter closed 8 years ago
Looks like hamcrest cannot be used with the iphone sdk. When I link the
hamcrest
static library I get the following error:
Undefined symbols:
"___gxx_personality_v0", referenced from:
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCIsNil.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCMatcherAssert.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCBaseMatcher.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCIsNot.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCStringDescription.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCWrapShortcut.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCBaseDescription.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCIsEqual.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
"___gxx_personality_v0", referenced from:
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCIsNil.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCMatcherAssert.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCBaseMatcher.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCIsNot.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCStringDescription.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCWrapShortcut.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCBaseDescription.o)
___gxx_personality_v0$non_lazy_ptr in libStaticHamcrest.a(HCIsEqual.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Original comment by btkn...@gmail.com
on 25 Feb 2009 at 9:19
Now with full iOS support. Add -lstdc++ to your "Other Linker Flags" for the
"personality" errors.
Original comment by jon.m.r...@gmail.com
on 23 Nov 2010 at 3:51
Original issue reported on code.google.com by
btkn...@gmail.com
on 25 Feb 2009 at 7:46