• 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
Framework linking errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Framework linking errors


  • Subject: Framework linking errors
  • From: Patrick Rutkowski <email@hidden>
  • Date: Sat, 15 May 2010 23:29:04 -0400

I'm building a Framework which internally uses OpenSSL, and exposes a sort of OpenSSL wrapper for various small purposes.

However, when linking the framework, Xcode complains of missing symbols like:

_ERR_error_string_n
_ERR_clear_error
_SSL_CTX_free
_SSL_CTX_new
_ERR_get_error
_SSL_library_init
_SSL_load_error_strings

I'm puzzled about this, since my previous experience with dynamic libraries has been with libtool projects via autotools, which such things never happened.

It turns out that libtool+autotools projects pass "-undefined dynamic_lookup" to the linker, which leaves such undefined symbols to be resolved by the client project. Which I assume it can resolve either by statically linking to the ssl, or by dynamically linking to the ssl library.

Is there any reason to NOT pass "-undefined dynamic_lookup" to the linker for a framework project? I'm awfully tempted to do so.

-Patrick

_______________________________________________

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

  • Follow-Ups:
    • Re: Framework linking errors
      • From: Patrick Rutkowski <email@hidden>
  • Prev by Date: Re: drawing into a hidden view
  • Next by Date: Re: Framework linking errors
  • Previous by thread: Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView:
  • Next by thread: Re: Framework linking errors
  • Index(es):
    • Date
    • Thread