Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Running Mathematica from Within an External Pro...' topicStudent Support Forum > General > Archives > "Running Mathematica from Within an External Pro..."

Next Comment >Help | Reply To Topic
Author Comment/Response
Jiri Stepanek
10/02/02 10:06am

Hello,

I would like to run Mathematica from Within an External Program, which
is written under Microsoft Visual C++. I use a header file mathlink.h
and I can compile my program, but it's impossible to link it. The linker
is not able to find ML functions. Actually, I tried to lance a program
factor.c from Examples ass well, but it always doesn't work.
Should I declare somewhere any library? I have found some (ml32i1b.lib
...) but they look strangely. At the bottom of this mesage is a part of program
and a corresponding error mesage.

Thank you for your answer.
Yours sincerely
Jiri Stepanek

MLENV env;
MLINK link;
long errno;

env=MLInitialize(0);
link=MLOpenArgv(env, argv, argv+argc, &errno);
MLActivate(link);

--------------------------------------------------------------------------
Linking...
mathem1.obj : error LNK2001: unresolved external symbol _MLConnect@4
mathem1.obj : error LNK2001: unresolved external symbol _MLOpenArgv@16
mathem1.obj : error LNK2001: unresolved external symbol _MLInitialize@4
Debug/mathem1.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

URL: ,

Subject (listing for 'Running Mathematica from Within an External Pro...')
Author Date Posted
Running Mathematica from Within an External Pro... Jiri Stepanek 10/02/02 10:06am
Re: Running Mathematica from Within an External... alan miller 10/18/02 04:00am
Next Comment >Help | Reply To Topic