Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Cannot compile anymore!

OP1
New Contributor III
544 Views
Dear forum,

I have run into a weird issue with Visual Studio 2005 and IVF. I cannot compile my code anymore - when I try to compile one subroutine in my DLL project, I get "libifcoremd.lib (libifcoremain.obj) : error LNK2019: unresolved external symbol _MAIN_ referenced in function _main".

Furthermore, after this compilation failure, all the object files created by this compilation attempt are located in my project directory, not in the Release or Debug directories. I get .exe.manifest, .exp, .lib, .mod, .obj files there (the .exe.manifest is puzzling since my subroutine is part of a DLL, not a console application).

I have removed and reinstalled both IVF and VS2005, to no avail. I used the IVF integration repair tool - this didn't do anything.

This large code was compiling/building very well until yesterday when I installed an unrelated software.

Thanks in advance for your help,

Olivier
0 Kudos
2 Replies
Steven_L_Intel1
Employee
544 Views
The problem is not that you can't compile but that compiling each source then tries to link. We have seen this with VS2005. The fix is to go to Project > Properties > Fortran > Command Line and add:

/c

to the list of Additional Options.

We never figured out how this happened. Recreating the project should also be a fix.
0 Kudos
OP1
New Contributor III
544 Views
Thanks Steve for your help, this did the trick!

Olivier
0 Kudos
Reply