6Libraries

A library is a packaged collection of object files that programs can link against to make use of the features it provides. Traditional Unix has two kinds of libraries: static libraries, where the linker packages the object code into the application, and shared libraries, where the linker just stores a reference to a library and the symbols the application needs. Mac OS X also brings frameworks to the table. Frameworks package shared libraries with other resources, like header files, documentation, and subframeworks.

Static Libraries

Static libraries are the simplest libraries to work with. Many open source projects that you can download will frequently build static libraries, whether for your programs to link against or for internal ...

Get Advanced Mac OS X Programming: The Big Nerd Ranch Guide 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.