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:

Wolfram Research (2010), FindLibrary, Wolfram Language function, https://reference.wolfram.com/language/ref/FindLibrary.html.

Text

Wolfram Research (2010), FindLibrary, Wolfram Language function, https://reference.wolfram.com/language/ref/FindLibrary.html.

CMS

Wolfram Language. 2010. "FindLibrary." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FindLibrary.html.

APA

Wolfram Language. (2010). FindLibrary. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FindLibrary.html

BibTeX

@misc{reference.wolfram_2024_findlibrary, author="Wolfram Research", title="{FindLibrary}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/FindLibrary.html}", note=[Accessed: 05-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_findlibrary, organization={Wolfram Research}, title={FindLibrary}, year={2010}, url={https://reference.wolfram.com/language/ref/FindLibrary.html}, note=[Accessed: 05-December-2024 ]}