Re: Calling Mathematica-4.0 from C Code.
- To: mathgroup at smc.vnet.net
- Subject: [mg26665] Re: [mg26637] Calling Mathematica-4.0 from C Code.
- From: "P.J. Hinton" <paulh at wolfram.com>
- Date: Wed, 17 Jan 2001 00:47:19 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
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 system. ToFileName[ {$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.com Wolfram Research, Inc. Disclaimer: Opinions expressed herein are those of the author alone.