Re: Cocoa Static Lib and Link Error
Re: Cocoa Static Lib and Link Error
- Subject: Re: Cocoa Static Lib and Link Error
- From: email@hidden
- Date: Thu, 17 Jun 2010 17:55:17 -0600
Thank you Nick!
Up and running ... and testing!
-koko
On Jun 17, 2010, at 5:52 PM, Nick Zitzmann wrote:
On Jun 17, 2010, at 5:45 PM, email@hidden wrote:
I have built a Cocoa Static Lib from the Xcode template.
To test the Lib I have a Cocoa App that links with the LIb.
When building the Cocoa App I get this link error:
"___gxx_personality_v0", referenced from:
___gxx_personality_v0$non_lazy_ptr in LibLicenseD.a(HTTP.o)
ld: symbol(s) not found
HTTP is an Cocoa Class in the LIb.
The LIb also has a CPP Class.
From where do I get the missing symbol?
If your static library has a C++ class in it, then you must force
the Cocoa application to link against the C++ libraries or else
you'll get this error. The easiest way of doing this is to include
an empty source file with the file extension "cpp" in your app target.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden