New in Wolfram
Mathematica
8: Integrated C Workflow
◄
previous
|
next
►
Software Development
Compile
MathLink
Programs
The C compiler driver detects that a
MathLink
template file is used and calls
mprep
before using the output as input to the C compiler.
In[1]:=
X
Needs["CCompilerDriver`"] files = FileNames["*", FileNameJoin[{$InstallationDirectory, "SystemFiles", "Links", "MathLink", "DeveloperKit", $SystemID, "MathLinkExamples", "addtwo"}]]; prog = CreateExecutable[files, "addTwo"]
Out[1]=
In[2]:=
X
Install[prog]
Out[2]=
In[3]:=
X
AddTwo[2, 3]
Out[3]=