• 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 static linking...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about static linking...


  • Subject: Question about static linking...
  • From: Chas Spillar <email@hidden>
  • Date: Thu, 09 Mar 2006 16:31:31 -0800
  • Thread-topic: Question about static linking...

Hello,

I want to create a static library which only exports a few function calls.
Then I want to include this in another target to be used with another target
I am building.

I tried the following:

1) Created a Carbon static library (foo.a),
2) Created an export file foo.exp,
3) Indicated the following options in the build settings for the foo
library:
    Export Symbols File = foo.exp
    Symbols Hidden by Default = checked
4) Included the library in my other target (bar)


However, there are two problems that I see:

1) My library foo.a when viewed with nm -m shows all the external and
private symbols.  I want these other symbols to not show up in the build
library.

2) When linking my other target (bar) it doesn't find the symbols in my
static library.


Usually, I could just include the files for the library in my target
directly, but I need to give my project to an external programmer and I
can't give out the sources for this particular library.

Any help would be appreciated,

Thank you,

Chas.


 _______________________________________________
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 static linking...
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: Target ignoring search headers
  • Next by Date: Re: Can't Find Header even though in project
  • Previous by thread: Re: Target ignoring search headers
  • Next by thread: Re: Question about static linking...
  • Index(es):
    • Date
    • Thread