LibraryGenerate
This feature is not supported on the Wolfram Cloud.

LibraryGenerate[cfun,name,opts]
generates a shared library from the compiled function cfun using the name as the exported function name.

更多信息更多信息

  • 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

范例范例打开所有单元关闭所有单元

基本范例  (1)基本范例  (1)

In[1]:=
Click for copyable input

Generate C code and compile it into a library:

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