Developer's Toolkit Release Notes for HP-UX 11i

78 Chapter 4
Compatibility Information and Installation Requirements
Dynamic Loading of Versioned Libraries
Dynamic Loading of Versioned Libraries
When developing an application that dynamically loads versioned
libraries, the name used for loading a library requires special attention.
Applications should not dynamically load versioned libraries with names
of the form library_name.sl. Names ending in the .sl extension are
generally associated with symbolic links to one of several possible
versions of a library. Although these links are installed in the
development environment, they are not typically present in the run-time
environment.
To ensure the correct version of a library is loaded, use the name that
includes the version extension of the library executable. Use the file
name referenced by the libA.sl symbolic link for the library in
question. For example, if libA.sl is a symbolic link to libA.1, then use
libA.1 for dynamic loading.