LibraryFunctionLoad

LibraryFunctionLoad[lib,fun,argtype,rettype]

loads Wolfram Library lib and makes the library function fun available in the Wolfram Language.

Details and Options

Examples

open allclose all

Basic Examples  (3)

Load a function from a sample library:

Call the function:

You can call LibraryFunctionLoad more than once for the same input:

Load a function from the library, which will exchange data over WSTP:

Load a function, which calls back to the Wolfram Language to evaluate Message[MyFunction::info]:

Possible Issues  (1)

LibraryFunctionLoad uses FindLibrary to locate libraries:

It is faster to find the library once with FindLibrary:

Introduced in 2010
 (8.0)
 |
Updated in 2014
 (10.0)