Chapter 12. Dynamic Libraries and Frameworks

Let’s do some more with our statistics package. We already have a static library that accumulates sums toward a linear regression. This library has some limitations, however.

  • The statistics are limited. For instance, because the library doesn’t keep individual data points, we can’t calculate standard deviations.

  • The header file is a separate entity from the library. By the standard means of distributing libraries and headers, users of our library will have to separate the header and the library into different directories, such as /usr/local/lib and /usr/local/include, and specify the additional directories at build time, an accident-prone process. One file or the other can get lost, deleted, or miss a ...

Get Step into Xcode Mac OS X Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.