The OpenD Programming Language

SharedLibLoader.load

Finds and loads any version of a shared library greater than or equal to the required mimimum version, , using libNames to find the library on the file system.

If multiple library names are specified in libNames, a SharedLibLoadException will only be thrown if all of the libraries fail to load. It will be the head of an exception chain containing one instance of the exception for each library that failed.

Parameters

libNames string[]

An array containing one or more shared library names, with one name per index.

minRequiredVersion SharedLibVersion

The minimum version of the library that is acceptable. Subclasses are free to ignore this.

Throws

SharedLibLoadException if the shared library or one of its dependencies cannot be found on the file system. SymbolLoadException if an expected symbol is missing from the library.

Examples

If this loader supports versions 2.0 and 2.1 of a shared library, passing a SharedLibVersion with the major field set to 2 and the minor field set to 0 will cause the loader to load version 2.0 if version 2.1 is not available on the system.

Meta