Re: Linking and cross-referenced static libraries
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