- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I could build an application using visual fortran compiler v10.1. However, when i tried to build the same source code using visual fortran complier v11.0, a linking error messageLNK2001, unsolved external (a common block name) alwaysappeared. It is really frustrating! Can someone help me about it?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I think the link error usually indicates that there is an external symbol that is referenced but was not found. Is the common block label one that you recognize or that is used in your project routines? If the common block label is unexpected, as suggested by your question, perhaps it is used in another library or DLL? Perhaps the number of variables in the common block has changed, or the label has changed slightly? I have encountered link errors when the number of arguments in a call statement have been changed, or there is a typo in a subroutine name or common block label. Hopefully the symbol name in question will help to track down where it is being used. Can you do a global search on all your routines for the label?
I wouldn't think that the Fortran version change would require updating any USE statements for support libraries, but perhaps there is a USE statement that needs to be updated? As an example, when changing from the older Compaq Fortran to the new Intel Fortran compiler we needed to change support libraries like "USE dflib" to "USE ifport". Do you have any USE statements in your project that could be trying to access the undefined symbol?
Perhaps you could provide more details? Perhaps there is more information in the error message, the name of the common block, and the type of project you are compiling and if any external libraries are used.
Regards,
Greg

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