CCodeGenerator`
CCodeGenerator`

LibraryGenerate

LibraryGenerate[cfun,name,opts]

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

Details and Options

  • 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)

Generate C code and compile it into a library:

Wolfram Research (2010), LibraryGenerate, Wolfram Language function, https://reference.wolfram.com/language/CCodeGenerator/ref/LibraryGenerate.html.

Text

Wolfram Research (2010), LibraryGenerate, Wolfram Language function, https://reference.wolfram.com/language/CCodeGenerator/ref/LibraryGenerate.html.

CMS

Wolfram Language. 2010. "LibraryGenerate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/CCodeGenerator/ref/LibraryGenerate.html.

APA

Wolfram Language. (2010). LibraryGenerate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/CCodeGenerator/ref/LibraryGenerate.html

BibTeX

@misc{reference.wolfram_2023_librarygenerate, author="Wolfram Research", title="{LibraryGenerate}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CCodeGenerator/ref/LibraryGenerate.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_librarygenerate, organization={Wolfram Research}, title={LibraryGenerate}, year={2010}, url={https://reference.wolfram.com/language/CCodeGenerator/ref/LibraryGenerate.html}, note=[Accessed: 19-March-2024 ]}