I am very new to using Visual Studio. I'm developing a project for my internship that uses a VC++ GUI to call a FORTRAN program. I'm right now using just a simple FORTRAN program and trying to connect to it to the C++ code developed with my GUI. I've been learning bits and pieces of VC++ all summer, but cannot get over this errors:
error LNK2019: unresolved external symbol _MAIN__ referenced in function _main libifcoremt.lib
I think the second and third errors are related to the first error, and solving that will solve the rest.
I'm using Visual Studio 2005, and Intel FORTRAN compiler. Any help would be greatly appreciated!!
In my C++ code, I define the FORTRAN by:
void CONSOLE1(int *TSTART, int *answer);
and call it as:
My FORTRAN is a simple file that looks like this:
M = N*N
MAIN and main do not exist anywhere in my work, which is why the error confuses me. And I've added to my additional directories Console4.lib, the library file to the FORTRAN program (I think). Thanks in advance for any help!!
Thanks for the advice, but I looked through that thread and tried many of the things that it mentions in there. the main issue seemed to be that all runtime libraries needed to be the same. Mine are all the same, set to Multithreaded Debug. I'm not even sure which option to choose, and how each is different. If you have any other advice, I'd greatly appreciate it!! :-)