• 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: bundling a set of static libs into a framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bundling a set of static libs into a framework


  • Subject: Re: bundling a set of static libs into a framework
  • From: Greg Guerin <email@hidden>
  • Date: Fri, 19 Dec 2008 18:47:19 -0700

Wesley Smith wrote:

I'm working on a framework that takes in about 15 static libs and a
few .o files and makes them into a framework + a few utility functions
in C++ code.  For the most part, it's working quite well but for
whatever reason, a handful of symbols are not getting into the
framework from the static libs.  I've observed that if I add a "hack"
function that makes explicit use of these symbols in one of the
framework's source files that they will somehow get into the
framework.

The "somehow" is inherent to a static library.

Start by reading the man page for 'ld', especially the initial sections that describe what a static library is, and how modules in a static lib are pulled out and linked (find the word "pull"). Then, find the '-all_load' option.

http://developer.apple.com/documentation/Darwin/Reference/ManPages/ man1/ld.1.html

  -- GG

_______________________________________________
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


  • Prev by Date: Re: [RESOLVED] NSBox over NSImage wipes NSImage on MacOS 10.4
  • Next by Date: RE: Buttons in IB not displaying images
  • Previous by thread: bundling a set of static libs into a framework
  • Next by thread: Multiple dylibs in a framework.
  • Index(es):
    • Date
    • Thread