• 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: link stage ignoring my static lib!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: link stage ignoring my static lib!


  • Subject: Re: link stage ignoring my static lib!
  • From: Peter O'Gorman <email@hidden>
  • Date: Mon, 12 Nov 2007 18:13:24 -0600

Peter Mulholland wrote:
> I still don't see the need for "link order matters" though -
> especially when you cannot specify a lib multiple times to get around
> some issues. It might be a good idea for Apple to consider adding a
> flag to the linker that turns link order off (as it is with MSVC)

With the new linker on 10.5, link order does not matter anymore. To
quote the manpage:

A static library (aka static archive) is a collection of .o files with a
table of contents that lists the global symbols in the .o files.  ld
will only pull .o files out of a static library if needed to resolve
some symbol reference.  Unlike traditional linkers, ld will continually
search a static library while linking. There is no need to specify a
static library multiple times on the command line.

Peter

 _______________________________________________
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[2]: link stage ignoring my static lib! (From: Peter Mulholland <email@hidden>)
 >Re: Re[2]: link stage ignoring my static lib! (From: "Mark Wagner" <email@hidden>)
 >Re[4]: link stage ignoring my static lib! (From: Peter Mulholland <email@hidden>)
 >Re: Re[4]: link stage ignoring my static lib! (From: Chris Espinosa <email@hidden>)
 >Re[6]: link stage ignoring my static lib! (From: Peter Mulholland <email@hidden>)

  • Prev by Date: Re: optimizing cpp files in Objective C project
  • Next by Date: Re: scroll after window resize
  • Previous by thread: Re[6]: link stage ignoring my static lib!
  • Next by thread: Re: link stage ignoring my static lib!
  • Index(es):
    • Date
    • Thread