MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Calling Mathematica-4.0 from C Code.

On Sat, 13 Jan 2001, Chia-Wei Wang wrote:

>    I am trying to get familiar with MathLink, especially calling
> Mathematica from a C code. So I copy the example file from Todd Gayley's
> "A MathLink Tutorial" at Chapter 2. But the manual does not say how to
> compilie that code and excute it. I am using Sun Unix System. Could
> someone tell me what is the procedure to make that code work? Thank you
> very much.

Some system-specific information can be found in the online
documentation.  Open the Help Browser window, click on the Add-ons button,
and then click on the topics on the scroll panes:

MathLink Library -> System-Specific Information -> Solaris

You can also look at the sample Makefile in the programming examples in
the MathLink Developer's Kit directory tree.  Paste this expression in a
notebook and evaluate it to determine where these files are on your

  {$TopDirectory, "AddOns", "MathLink", "DevelopersKits", 
    $SystemID, "MathLinkExamples"}

You should also consult with your local computer support staff to become
familiar with the software development tools on your system.  Many
mistakes made by beginning MathLink programmers arise from lack of
understanding of their own C compilers.

P.J. Hinton
User Interface Programmer                         paulh at
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.

  • Prev by Date: Re: Partial Differential Equation
  • Next by Date: Re: horizontal cylinder
  • Previous by thread: Re: Calling Mathematica-4.0 from C Code.
  • Next by thread: what are these polynomials called?