MathGroup Archive 2001

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

Search the Archive

Mathlink problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28144] Mathlink problem
  • From: LMGorski at webtv.net (Larry Gorski)
  • Date: Sun, 1 Apr 2001 00:08:05 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello.  I'm trying to link a C language program to a Mathematica
notebook.  I'm using Mathematica 4.1 and Microsoft Visual C++ V 6.0.
I'm practicing with the "ADDTWO" example from Mathematica/Mathlnk.
First, I had a problem prepoecessing the .tm file.  Visuall C++ couldn't
seem to find the file.  I finally just ran "mprep addtwo.tm -o
addtwotm.c" and copied the output file "addtwotm.c" to the correct
subdirectory (workspace in Visuall C++).  I went back to Visual C++ and
openen the correct workspace.  Addtwotm.c was identified as a source
file along with addtwo.c.  So I tried to build "addtwo.exe"  It seemed
to work i.e. 0 Errors, 0 Warnings.  I went backed to Matematica and
tried to install "addtwo.exe".  First, it couldn't find the file.  The
file was created by Visual C++ but it was in the .\addtwo\debug
subdirectory.  That made me a bit nervous.  In any event, after
providing the path to \addtwo.exe, the expected function calls did not
work.  Mathematica seemed to act as if addtwo was not a function
recognizable to it.

I very inexperienced in these things.  If you can help me understand
where I went wrong and how to correct my problems, I would appreciate it
but please keep the explanations simple.

Thanks.

Larry 



  • Prev by Date: Re: Re: What is happening here? (TagSet)
  • Next by Date: Re: Patterns and default arguments
  • Previous by thread: More problem with DSolve applied to System of ODE