Kenwood HP 9000 Personal Computer User Manual


 
124 Chapter 5
Creating and Using Libraries
Overview of Shared and Archive Libraries
(/usr/lib/libc.a or /usr/lib/pa20_64/libc.a). You can, however,
override this behavior and select the archive version of a library with the
-a option or the -l: option. These are described in “Choosing Archive or
Shared Libraries with -a” on page 63 and “Specifying Libraries with -l
and l:” on page 87.
In addition to the system libraries provided on HP-UX, you can create
your own archive and shared libraries. To create archive libraries,
combine object files with the ar command, as described in “Overview of
Creating an Archive Library”. To create shared libraries, use ld to
combine object files containing position-independent code (PIC), as
described in “Creating Shared Libraries”.
For more information, see “Caution When Mixing Shared and Archive
Libraries”.