• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa Static Lib and Link Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Cocoa Static Lib and Link Error (From: email@hidden)
 >Re: Cocoa Static Lib and Link Error (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Cocoa Static Lib and Link Error
  • Next by Date: Re: Problem running CocoaDVDPlayer sample
  • Previous by thread: Re: Cocoa Static Lib and Link Error
  • Next by thread: Re: Cocoa Static Lib and Link Error
  • Index(es):
    • Date
    • Thread