Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: Calling Mathematica-4.0 from C Code.

  • To: mathgroup at
  • Subject: [mg26673] Re: Calling Mathematica-4.0 from C Code.
  • From: Jens-Peer Kuska <kuska at>
  • Date: Wed, 17 Jan 2001 00:47:24 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <93r8sn$>
  • Sender: owner-wri-mathgroup at


compile so that the MathLink include files and librarys are found

cc -o mytest
-lML \ -lsocket -lnsl

and run


Is it so complicated ?


Chia-Wei Wang wrote:
> Hi,
>    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.
> With Regards
> Chiawei
> ________________________________________________________________________

  • Prev by Date: Re: Combining 3D Graphics
  • Next by Date: Re: calling function in a DLL from Mathematica
  • Previous by thread: Calling Mathematica-4.0 from C Code.
  • Next by thread: Re: Calling Mathematica-4.0 from C Code.