• 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: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3


  • Subject: Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3
  • From: Chris Hanson <email@hidden>
  • Date: Tue, 28 Jun 2016 12:48:58 -0700

On Jun 24, 2016, at 9:16 PM, Marco S Hyman <email@hidden> wrote:

> Building a library, step 1:
> compile a bunch of .c, .m, .cc, .whatever files into .o files
>
> Building a library, step 2:
> Link all the .o files created in step 1 into a .a file

This is subtly incorrect.

On UNIX systems, step 2 is typically:

 Archive all the .o files created into step 1 into a .a file

Unless configured specially, a static library on UNIX systems is typically just an archive of *un-linked* .o files. They are neither linked against the frameworks and libraries against which they were built, nor linked against each other. All linkage (again, unless configured specially) happens at the time the .a is used to produce a final linked product such as an executable, bundle, or dylib.

This can result in surprises when there are linkage requirements that aren't satisfied by a downstream consumer of the .a file.

 -- Chris


 _______________________________________________
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


  • Follow-Ups:
    • Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3
      • From: Alex Zavatone <email@hidden>
References: 
 >iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3 (From: Alex Zavatone <email@hidden>)
 >Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3 (From: Kyle Sluder <email@hidden>)
 >Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3 (From: Alex Zavatone <email@hidden>)
 >Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3 (From: Roland King <email@hidden>)
 >Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3 (From: Roland King <email@hidden>)
 >Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3 (From: Alex Zavatone <email@hidden>)
 >Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3 (From: Roland King <email@hidden>)
 >Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3 (From: Marco S Hyman <email@hidden>)

  • Prev by Date: Re: Problem with UIPanGestureRecognizer
  • Next by Date: Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3
  • Previous by thread: Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3
  • Next by thread: Re: iOS Xcode 7.3. If I'm telling it to build for 8.0, why is it reporting that it's built for 8.3
  • Index(es):
    • Date
    • Thread