• 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
Question about linking and exporting symbols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about linking and exporting symbols


  • Subject: Question about linking and exporting symbols
  • From: Jo Meder <email@hidden>
  • Date: Thu, 1 Nov 2007 22:59:40 +1300
  • Ironport-content-filter: send-to-smtp

Hi,

I'm having some problems figuring out what to do to resolve some link errors. I have a static lib which I link to one framework, and I want the symbols from that framework to be available to another one which links to it. It looks something like this

libStatic.a --> Framework A --> Framework B --> Application

My problem is that I want symbols from libStatic.a to be available to Framework B, via Framework A.

The problem appears to be that the libStatic.a symbols are not being exported from Framework A. I ran "nm -g" on Framework A and didn't see any of the libStatic.a symbols there. When I actually called functions from libStatic.a in Framework A and ran "nm -g" again the functions did show up as being exported symbols, but I will only be calling a small number of libStatic.a functions from Framework A.

Assuming I'm an idiot, what would be the best way to achieve this in Xcode 2.4.1? Are there particular project settings I can set to do it ? Will I need to build a file of symbols to be exported from libStatic.a and use that in Framework A? I have tried that, it didn't appear to work.

The best way to do this would probably be to turn libStatic.a into a framework, but for various reasons I would like to keep using the static library if possible.

Regards,

Jo Meder
_______________________________________________
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: Question about linking and exporting symbols
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: linking problem on IOIteratorNext
  • Next by Date: Re: Question about linking and exporting symbols
  • Previous by thread: Re: linking problem on IOIteratorNext
  • Next by thread: Re: Question about linking and exporting symbols
  • Index(es):
    • Date
    • Thread