Macaulay2 » Documentation
Packages » ForeignFunctions :: openSharedLibrary
next | previous | forward | backward | up | index | toc

openSharedLibrary -- open a shared library



Open a shared library with the given name. In particular, this is a wrapper around the C dlopen function. A library is searched for with the filename "lib" | name | ".so" (in Linux) or "lib" | name | ".dylib" (in macOS). Alternatively, a specific filename can be specified using the FileName option. A corresponding SharedLibrary object, which can be later used by foreignFunction, is returned.

i1 : openSharedLibrary "mpfr"

o1 = mpfr

o1 : SharedLibrary

Ways to use openSharedLibrary :

For the programmer

The object openSharedLibrary is a method function with options.