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

Linking problem

brian_schick
Beginner
817 Views
I have looked through the other posts, and have been unable to find an answer to my problem. Here is the error:

1>Linking...
1>libifcoremt.lib(libifcoremain.obj) : error LNK2019: unresolved external symbol _MAIN__ referenced in function _main
1>Debug/Hostsim.exe : fatal error LNK1120: 1 unresolved externals

I don't think I changed anything in the properties that would cause this.
I am using VS 2005 and ...
Intel Fortran Compiler for 32-bit applications, Version 9.1 Build 20060816Z Package ID: W_FC_C_9.1.029

Thanks,
Brian

0 Kudos
4 Replies
Steven_L_Intel1
Employee
819 Views
I have seen this if you create a Console application that does not contain a Fortran main program. I've also seen it when the project has inconsistent library settings or has added libraries explicitly to the linker options.
0 Kudos
brian_schick
Beginner
819 Views
Yes, there is no main in this project...I will try to see what to do (I have to talk with the higherups)...Is there any solution the involves not making a Fortran main program?

-Thanks,
Brian
0 Kudos
Steven_L_Intel1
Employee
819 Views
Recreate the project as what it should be - static library or DLL.
0 Kudos
brian_schick
Beginner
819 Views

You were right...I was missing a file that wasn't given to me that had the main program in it.

Thanks a bunch,

Brian

0 Kudos
Reply