| 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: , |
|