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

Question about static libraries...


  • Subject: Question about static libraries...
  • From: Chas Spillar <email@hidden>
  • Date: Mon, 24 Jul 2006 11:42:47 -0700
  • Thread-topic: Question about static libraries...

Hello,

So, I have a set of code that I would like to share within my own code.
Additionally, I have the requirement to give this code to a developer
outside my company.

Heretofore, I have just copied the set of 10-20 files into each target that
needs this capability.  Now that I have a need to give it to an external
developer, I can't give the sources out, I need another solution.

I am aware of frameworks, but would prefer to avoid using one in this case
as I prefer to keep this code relatively opaque (that is I prefer for myself
and the other developer to directly compile it into our code).

In Mac OS 9 / MPW, there was the concept of a "static library".  By which I
was able to collect a group of sources into a "library" and the library was
statically bound at compile time.  That is the library was not needed after
compile time.

I have created a "static library" target in XCode and included this target
in my other target which needs the use of the code.  However, I am getting
undefined symbols for the various defined symbols in the static library when
building.

So, my questions are:

1) Do static libraries on MacOS X work like they did in MacOS 9, that is
resolved completely at compile time?

2) What is preferred solution to this problem?  As I said, I would prefer to
not build a framework as that would enable others to use this capability,
which I wish to avoid.


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 libraries...
      • From: David Dunham <email@hidden>
  • Prev by Date: Re: Enabling language-specific warnings in multi-language projects
  • Next by Date: Re: [OT] Anyone created Xcode projects for building Open Source
  • Previous by thread: Re: [OT] Anyone created Xcode projects for building Open Source
  • Next by thread: Re: Question about static libraries...
  • Index(es):
    • Date
    • Thread