LibraryLoad

LibraryLoad[lib]

loads the dynamic library lib into the Wolfram System runtime.

Details

  • LibraryLoad is used to load dependent dynamic libraries needed for a Wolfram Library to operate.
  • Libraries loaded using LibraryLoad do not need to follow the Wolfram Library Link specification.
  • The order of multiple LibraryLoad calls is important and must follow the mutual dependency of the libraries.
  • LibraryLoad uses FindLibrary to locate libraries searching on $LibraryPath.
  • LibraryLoad adds an extension appropriate to your platform and returns the full path of the loaded library.

Examples

Basic Examples  (1)

This loads the sample library demo but does not return a function to call. On Windows:

On Linux:

If the library cannot be found, LibraryLoad returns $Failed:

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

Text

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

CMS

Wolfram Language. 2010. "LibraryLoad." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/LibraryLoad.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_libraryload, author="Wolfram Research", title="{LibraryLoad}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/LibraryLoad.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_libraryload, organization={Wolfram Research}, title={LibraryLoad}, year={2020}, url={https://reference.wolfram.com/language/ref/LibraryLoad.html}, note=[Accessed: 22-November-2024 ]}