This is documentation for Mathematica 9, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

MathLink API

Extensively used within the Mathematica system itself, MathLink is Mathematica's unique high-level symbolic interface standard for interprogram communication. With convenient bindings for a variety of languages, MathLink immediately allows arbitrary symbolic objects—representing data, programs, or any other construct—to be efficiently exchanged between programs, on one computer or across a heterogeneous network.


Installable MathLink Programs »

Install run a MathLink installable external program

LinkPatterns find functions available in a running MathLink program

mprep, mcc externally prepare a MathLink installable program

MathLink Mathematica Functions »

LinkLaunch, LinkConnect, LinkCreate initiate MathLink programs and connections

LinkRead, LinkWrite read and write expressions on a MathLink connection

Links list all currently open links

C Language Functions »

MLPutInteger32() ▪ MLGetInteger32() ▪ MLPutString() ▪ MLPutFunction() ▪ ...

MLOpenString() ▪ MLNextPacket() ▪ MLTransferExpression() ▪ ...

Java Functions »

evaluate() ▪ evaluateToOutputForm() ▪ evaluateToImage() ▪ ...

put() ▪ getInteger() ▪ getObject()

createKernelLink() ▪ waitForAnswer()

C#/.Net Functions »

Evaluate() ▪ EvaluateToOutputForm() ▪ EvaluateToImage() ▪ ...

Put() ▪ GetInteger() ▪ GetObject()

CreateKernelLink() ▪ WaitForAnswer()