• 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: bsd dynamic library dependencies help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bsd dynamic library dependencies help


  • Subject: Re: bsd dynamic library dependencies help
  • From: "Paul Sanders" <email@hidden>
  • Date: Tue, 29 Dec 2009 16:41:47 -0000

> Somebody long ago was kind enough to write circular dependencies into some of these libraries I am working with.  Any thoughts on whether Xcode will handle that?
 
The usual solution to this kind of problem is to create a stub library (of bar, say) which defines the symbols required by foo and has no external dependencies.  You can then link foo against the stub version of bar, and then link the real version of bar against foo.  I doubt you can do all this in a single project though.
 
There might also be some mileage in investigating 'weak references' ("-undefined dynamic_lookup").  I have not tried this myself so I cannot vouch for it, and it is not without a downside:
 
http://briksoftware.com/blog/?cat=8
 
Paul Sanders.
 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: bsd dynamic library dependencies help (From: Xochitl Lunde <email@hidden>)

  • Prev by Date: Re: bsd dynamic library dependencies help
  • Next by Date: Re: bsd dynamic library dependencies help
  • Previous by thread: Re: bsd dynamic library dependencies help
  • Next by thread: Re: bsd dynamic library dependencies help
  • Index(es):
    • Date
    • Thread