LibraryGenerate


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

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples (1)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]=
New to Mathematica? Find your learning path »
Have a question? Ask support »