6 Creating and Using Libraries
Many libraries come with
•General Information About Shared and Archive Libraries
◦
◦
◦
◦
•Creating Libraries on
◦“Creating Archive Libraries” (page 94)
◦“Creating Shared Libraries” (page 98)
•Using Libraries on
◦
◦
◦
◦
◦
◦
◦
Overview of Shared and Archive Libraries
Table 20 Differences between archive and shared libraries
Comparing | Archive | Shared (or dll) |
|
|
|
file name suffix | Suffix is .a. | Suffix is .sl or .<version> on PA systems and .so or |
|
| .so.<version> on |
|
| version number of the library. |
|
|
|
creation | Combine object files with the ar | Combine object files with the ld command |
| command |
|
|
|
|
Overview of Shared and Archive Libraries 89