- To: email@example.com
- Subject: [mg11928] Re: MathLink
- From: firstname.lastname@example.org (Kevin Leuthold)
- Date: Thu, 9 Apr 1998 00:33:28 -0400
- Organization: Wolfram Research, Inc.
- References: <email@example.com>
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.
firstname.lastname@example.org (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
>Thanks for your help.
Prev by Date:
Next by Date:
Prev by thread:
Next by thread: