ExternalCalling - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Calling External Routines : ExternalCalling : ExternalCalling/ExternalLibraryName

ExternalCalling

  

ExternalLibraryName

  

return the name of the relevant external shared object

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

ExternalLibraryName( basename, precision )

Parameters

basename

-

string or name; denotes which library is relevant

precision

-

optional HWFloat or SWFloat

Description

• 

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.

Examples

withExternalCalling:

extlibExternalLibraryNamemstring

extlib:=libmstring.so

(1)

extcallDefineExternal'mstring_uppercase',extlib

extcall:=procoptioncall_external,define_externalmstring_uppercase,MAPLE,LIB=libmstring.so;call_external0,140204696348208,true,false,argsend proc

(2)

See Also

define_external

external_calling

ExternalCalling

ExternalCalling[DefineExternal]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam