Library loading options

User-defined shared libraries support two loading methods, automatic and manual load:
  • An automatic load library is automatically loaded into the system and added to the global space. At snippet execution time, the system ensures that automatic load libraries are automatically opened, and library symbols are available for use. The library is automatically closed after the snippet finishes. Automatic load is the default method for user-defined shared libraries.
  • Manual load means that a user-defined shared library is directly managed by a UDX. The UDX must use the dlopen(), dlsym(), and dlclose() functions to load the library, reference symbols, and to close the library when finished. UDXs are responsible for opening and closing the manual load libraries when they are needed.

If you create a shared library that has dependencies on other user-defined shared libraries, define the top-level library as AUTOMATIC LOAD. Then, define the subsequent or referenced libraries as AUTOMATIC LOAD.