ExternalCalling
ExternalLibraryName
return the name of the relevant external shared object
Calling Sequence
Parameters
Description
Examples
ExternalLibraryName( basename, precision )
basename
-
string or name; denotes which library is relevant
precision
optional HWFloat or SWFloat
The ExternalLibraryName(basename) function returns the string that represents the name of the relevant external shared object (library) with the correct platform filename extension or polycapitalization.
The library name (Maple string) is platform dependent. In Windows, the returned name has ".dll" appended to it. In all other operating systems, the library name has "lib" prepended and ".so" appended to it.
If precision is set to SWFloat, the suffix "mp" is appended to the basename of the shared library. This facilitates having hardware float and multi-precision software float libraries with the same base name.
with⁡ExternalCalling:
extlib≔ExternalLibraryName⁡mstring
extlib≔libmstring.so
extcall≔DefineExternal⁡mstring_uppercase,extlib
extcall ≔ procoptioncall_external,define_external⁡mstring_uppercase,MAPLE,LIB=libmstring.so;call_external⁡0,140353269845632,true,false,false,argsend proc
See Also
define_external
external_calling
ExternalCalling[DefineExternal]
Download Help Document