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:
Use of the #hide directive to limit externally visible symbols can help avoid problems in this area. (For more details, see ``Use #hide and #export to limit externally visible symbols''.