Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > C/C++ Language Interface >
C/C++ Language Interface
Mathematica supports several levels of interfacing to C and C++ programs. You can create "installable" C programs where C functions are directly connected to Mathematica functions. You can use C to call Mathematica through MathLink and get full access to its capabilities. And you can create C program fragments and modify C source code.
Install load an installable MathLink program
.tm template file for connecting C and Mathematica functions
mcc, mprep scripts for building MathLink programs
MLEvaluate() call back into Mathematica
    
    
LibraryFunctionLoad load a function from a dynamic library into Mathematica
LibraryFunction a function that calls into a dynamic library
    
CreateExecutable create an executable from C code
CreateLibrary create a library from C code
    
Export export a Mathematica compiled function into C code
CCodeGenerate export a Mathematica compiled function into C code
CForm convert an expression to C language form
Splice splice Mathematica output into C source files
    
CFunction symbolic representation of a C function
CCall symbolic representation of a C function call
CAddress  ▪ CAssign  ▪ CBlock  ▪ CDeclare  ▪ CIf  ▪ CPointerType  ▪ CStruct
TUTORIALS
TUTORIAL COLLECTION
MORE ABOUT
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF