Re: MathLink
- To: mathgroup@smc.vnet.net
- Subject: [mg11928] Re: MathLink
- From: kevinl@wolfram.com (Kevin Leuthold)
- Date: Thu, 9 Apr 1998 00:33:28 -0400
- Organization: Wolfram Research, Inc.
- References: <6g29iu$1fi@smc.vnet.net>
Vince, Yes, the function MLMain should be generated if you run everything properly. It is defined in the code generated by the mprep tool. To generate this code, type the following at a command prompt: mprep sumalist.tm -o sumalist.tm.c (mprep is located in the CompilerAdditions directory.) In general, on Unix, there are two provided ways to build a MathLink sample program. You can use the mcc script (in CompilerAdditions) - this hides all the details of building the program and deletes the mprep-generated code once it's compiled so you won't see this code. Or you can use the Makefile provided in MathLinkExamples. By looking at this Makefile you should be able to see the steps needed to build sumalist, including the call to mprep. Kevin Leuthold MathLink Group Wolfram Research vince@vince.math.uconn.edu (Vince Giambalvo) writes: >Here is a silly question from someone just starting to use Mathlink. >Trying an example, to compile and set up the sample sumalist program, >nowhere can the system find MLMain. Is this supposed to be >automagically created if I run the other stuff properly? I have a unix >system. >Thanks for your help. > Vince