Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'mathlink and compiling error.' topicStudent Support Forum > General > "mathlink and compiling error."

Help | Reply To Topic
Author Comment/Response
alan miller
08/07/02 11:55am

I am trying to teach myself how to build a external program that calls Mathematica. (I am using Visual C++ 6.) I downloaded Mathlink kit from the website, and was able to compile AddTwo fine. However, when I tried to compile Factor, I get a following error message;

LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/factor.exe : fatal error LNK1120: 1 unresolved externals

And one more question; In C, the code starts as

int main(argv, argc)

What would it be with C++? Do I specify explicitly within main?
Thanks in advance.

URL: ,
Help | Reply To Topic