- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
-Thanks,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Recreate the project as what it should be - static library or DLL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page