[Date Index] [Thread Index] [Author Index]
Re: MathLink and Pascal ?
> Hallo, > > Is it possible to use MathLink in connection with pascal programs? > Could you give me a reference with a simple example? > (Unix or Mac) > > Thanks, > > Douglas dougbrkm at zedat.fu-berlin.de It depends upon your environment. On Windows and the PowerMacintosh, MathLink operates through a shared library scheme. Thus, any Pascal environment which can access shared libraries could use MathLink, and any Pascal environment which couldn't access shared libraries probably wasn't worth the money you paid for it. On 68K Macintosh and Unix platforms, your Pascal environment would need to be able access static C libraries in various formats. I've been out of the Pascal loop far too long to be able to tell you which environments that's possible with, but once again, I'll bet that most *good* environments are capable of this. So, then comes the question of how to implement MathLink in Pascal. There are no MathLink examples that I'm aware of in Pascal. The best way to proceed forward is to gain an understanding of the MathLink functions in general. Most of the available documentation assumes that the MathLink programmer is writing in C; if you happen to have a reading knowledge of C, then you will probably be able to pick up the MathLink functions without too much difficulty. Once you figure out how to represent a few of the structures in Pascal (or any language, for that matter), the MathLink functions should work the same way. I'm sorry that I have been a little bit vague in my answer; I hope that I've provided enough clarity on the issue to help you figure things out. I also highly recommend that you get the MathLink Tutorial, if you do not already have it. It is available on MathSource (http://www.wolfram.com/mathsource) as reference number 0206-693. Sincerely, John Fultz jfultz at wolfram.com Applications Group Wolfram Research, Inc. ==== [MESSAGE SEPARATOR] ====