dlopen

Loads an dynamic library.

Syntax

  • lib = dlopen(libraryname)

Input argument

  • libraryname - a string: dynamic library name.

Output argument

  • lib - a dllib handle.

Description

dlopen loads an dynamic library.

dlopen returns a dllib handle with Path property.

get, ismethod, isprop, disp, delete, isvalid, used, eq, ne, isequal, horzcat, vertcat are overloaded for dllib type.

library is searched first in NELSON_LIBRARY_PATH and after in PATH on windows or LD_LIBRARY_PATH or DYLD_LIBRARY_PATH on linux or Macos.

NELSON_LIBRARY_PATH can modified with setenv.

Example

path_1 = modulepath('dynamic_link', 'builtin');
lib1 = dlopen(path_1)
isvalid(lib1)
dlclose(lib1)
isvalid(lib1)
clear lib1

See also

dlclose, dllibisloaded.

History

Version
Description

1.0.0

initial version

Author

Allan CORNET

Last updated