• 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: Linking and cross-referenced static libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking and cross-referenced static libraries


  • Subject: Re: Linking and cross-referenced static libraries
  • From: Rush Manbert <email@hidden>
  • Date: Mon, 16 Jul 2007 12:32:10 -0700

Peter O'Gorman wrote:
On Mon, 2007-07-16 at 10:49 -0700, Rush Manbert wrote:


The GNU linker only reads each static library once, in the order in which the libraries are specified on the command line. Thus, cross-references between libraries can be a big headache. You can specify a library on the linker command line more than once, and each time its name is encountered, the linker will read it and attempt to resolve outstanding external references. If you have a Xcode project you can do this by using the "Other Linker Flags" build setting.


The static linker on Mac OS X is not GNU ld. See the opensource site and
look for cctools and ld64 projects if you want to find out more.

Peter


Oh, you're right. My bad.

For the OP, see the man page for ld, specifically the section titled "Static Archive Libraries". That describes what happens.

- Rush
_______________________________________________
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: 
 >Linking and cross-referenced static libraries (From: Adam Zegelin <email@hidden>)
 >Re: Linking and cross-referenced static libraries (From: Rush Manbert <email@hidden>)
 >Re: Linking and cross-referenced static libraries (From: Peter O'Gorman <email@hidden>)

  • Prev by Date: Re: Odd Console messages after kernel panic
  • Next by Date: More on embedding frameworks
  • Previous by thread: Re: Linking and cross-referenced static libraries
  • Next by thread: Re: Linking and cross-referenced static libraries
  • Index(es):
    • Date
    • Thread