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.