FindLibrary

FindLibrary[lib]

finds a dynamic library that can be loaded by LibraryFunctionLoad.

Details

  • FindLibrary can be used to locate both Wolfram Libraries and general dynamic libraries.
  • If a relative file name is given, FindLibrary will use $LibraryPath to find the library.
  • If no file name extension is given, FindLibrary will add one appropriate for the current platform: .so on Linux, .dll on Windows, .dylib on Mac OS X.
  • FindLibrary is used by library functions such as LibraryFunctionLoad to find libraries.

Examples

Basic Examples  (1)

This finds the sample library called demo:

In[1]:=
Click for copyable input
Out[1]=

See Also

$LibraryPath  LibraryFunctionLoad  LibraryFunction  FindFile  $Path

Tutorials

Introduced in 2010
(8.0)