Programming Tools Guide
Chapter 14, Shared libraries

Guidelines for writing shared library code

Guidelines for writing shared library code

The main advantage of a shared library over an archive library is sharing and the space it saves. These guidelines stress ways to increase sharing while avoiding the disadvantages of a shared library. The guidelines also stress upward compatibility.

We recommend that you read these guidelines once to get a perspective of the concepts involved in building a shared library.

When building a shared library there are a few restrictions involving static linking that should be considered. For example: