Re: ___gxx_personality_v0 undefined
Re: ___gxx_personality_v0 undefined
- Subject: Re: ___gxx_personality_v0 undefined
- From: "Stephen C. Gilardi" <email@hidden>
- Date: Thu, 17 Oct 2002 14:40:00 -0400
Everything is nice and fine for the C and Objective-C case - compiles,
links, runs. When compiled as C++, I get the undefined symbol
"___gxx_personality_v0" from ld.
I had the same problem with some code I downloaded recently. When I
googled it, I found a solution. There's a bit more information at "man
gcc" as well.
In my case, I changed the "compiler" in the Makefile I had from "gcc"
to "g++". The symbol that's missing appears to be one defined in the
C++ runtime library. Compiling with "g++" includes the necessary
library.
From the man page:
g++ is a program that calls GCC with the default language set to C++,
and
automatically specifies linking against the C++ library.
I don't know specifically how to fix the problem you describe, but I'm
hoping this gets you well along the way toward a solution.
--Squeegee
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.