- Functions
- Related Guides
-
Tech Notes
- Installing Existing WSTP-Compatible Programs
- Setting Up External Functions to Be Called from the Wolfram Language
- Two‐Way Communication with External Programs
- Portability of WSTP Programs
- WSTP C API Developer Guide (Mac OS X)
- WSTP C API Developer Guide (Unix and Linux)
- WSTP C API Developer Guide (Windows)
-
- Functions
- Related Guides
-
Tech Notes
- Installing Existing WSTP-Compatible Programs
- Setting Up External Functions to Be Called from the Wolfram Language
- Two‐Way Communication with External Programs
- Portability of WSTP Programs
- WSTP C API Developer Guide (Mac OS X)
- WSTP C API Developer Guide (Unix and Linux)
- WSTP C API Developer Guide (Windows)
Installable WSTP Programs
The Wolfram Language provides a convenient way to call functions in external C and other programs. With a .tm template specifying Wolfram Language functions corresponding to each C function, you build a WSTP-installable binary using mprep or mcc. You can exchange not only C-like data types such as integers, reals, arrays, and strings, but also arbitrary Wolfram Language expressions.
Install — load a WSTP installable executable to call from your Wolfram System session
Uninstall — close down a WSTP executable, removing its Wolfram Language functions
LinkPatterns — find functions available in a running WSTP program
., tm — template file for connecting C and Wolfram Language functions
C Language Functions »
WSMain() — special version of main() for WSTP-installable C programs
WSEvaluate(), WSEvaluateString() — call back from C into the Wolfram Language
WSPutFunction(), WSGetFunction(), ... — exchange arbitrary structures
Related Tech Notes
-
▪
- Installing Existing WSTP-Compatible Programs ▪
- Setting Up External Functions to Be Called from the Wolfram Language ▪
- Two‐Way Communication with External Programs ▪
- Portability of WSTP Programs ▪
- WSTP C API Developer Guide (Mac OS X) ▪
- WSTP C API Developer Guide (Unix and Linux) ▪
- WSTP C API Developer Guide (Windows)