[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
undefined reference to __gnustep_objcxx_personality_v0
From: |
Igor Zhbanov |
Subject: |
undefined reference to __gnustep_objcxx_personality_v0 |
Date: |
Mon, 16 Feb 2015 22:37:52 +0400 |
Hi!
I'm trying to compile following example for x86 with
"clang++ test1.mm -fobjc-runtime=gnustep -lc++ -lobjc" command:
---8<------------------------------------------------------------------------------------------
extern "C" {
void throwcxx()
{
throw 1;
}
int
main(void)
{
@try {
throwcxx();
} @catch(...) {
}
return 0;
}
}
---8<------------------------------------------------------------------------------------------
And getting error: undefined reference to `__gnustep_objcxx_personality_v0'.
What's wrong?
Also I checked libobjc2 and found that __gnustep_objcxx_personality_v0 function
is declared in "#ifndef __arm__". So how to compile for ARM?
Thank you.
- undefined reference to __gnustep_objcxx_personality_v0,
Igor Zhbanov <=