Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica Technical FAQs Services & Resources / Mathematica / MathLink
-----
 /
General Questions
*Mathematica
*Network Mathematica
*webMathematica
*gridMathematica
*Personal Grid Edition
*Wolfram Workbench
*Wolfram Education Group
*Application Packages
*Mathematica for Students
*Mathematica CalcCenter
*Publicon
*A New Kind of Science Explorer
*Mathematical Explorer
*Mathematica Teacher's Edition
*Calculus WIZ
*Mathematica Player
*Ask about this page
*Print this page
*Email this page
*Give us feedback
*
Sign up for our newsletter:

What is the MathLink template file?

The MathLink template file specifies the correspondence of function names and argument types between your external functions and their Mathematica forms. A template file matches specific Mathematica patterns with the external functions and arguments that should be used in evaluating expressions that fit those patterns. The template file should end with the extension .tm.

To build an installable external program, you should process the template file into a C module that takes care of the MathLink details, then compile this module an link it with your C functions and the MathLink library.

A program called mprep takes the template file as input and produces a C file that gives the MathLink interface between your external functions and Mathematica. It is then a simple matter to compile the external program, following the usual procedure for your compiler.

Download this FAQ as a Mathematica 5.2 Notebook






 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] [kr]