LibraryGenerate

LibraryGenerate[cfun,name,opts]

generates a shared library from the compiled function cfun using the name as the exported function name.

Details

  • To use LibraryGenerate, you first need to load it using Needs["CCodeGenerator`"].
  • LibraryGenerate can make standalone code or a Wolfram Library.
  • The Wolfram Language contains the necessary headers and libraries for standalone code.
  • The following option can be given:
  • "CodeTarget""WolframLibrary"the type of code to generate

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Generate C code and compile it into a library:

In[2]:=
Click for copyable input
Out[2]=

See Also

CCodeGenerate  CCodeStringGenerate  SymbolicCGenerate

Tutorials