- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
/c
to the list of Additional Options.
We never figured out how this happened. Recreating the project should also be a fix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve for your help, this did the trick!
Olivier
Olivier

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