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

Fortran Build Error Link 2001

PR11
Beginner
733 Views

My Fortran project consists of several source files. When I use the Debug option to build the project, I do not encounter any problem. However, when I switch to the Release option and try to build, I get Link Error 2001 of unresolved external symbols in some subroutines.

The errors specify the subroutines, but do not specify the symbol, variable, or statement. I have the following two questions:

1. Why there are no errors when the Debug option is used to build, while there are link errors when switching to the Release option with exactly the same files and same project properties?

2. How to identify the symbol, variable, or statement in the subroutine that leads to the errors.

 

Many thanks for your help

0 Kudos
3 Replies
andrew_4619
Honored Contributor III
676 Views

The problems seem a little strange but from the information specified it would be speculation as to the cause. Doing a full build in bothe debug and release and looking at the two build log html files might give some clues. Posting the files could be useful as differences the the commands used and error messages  are probably key. You could also build with the \verbose link option which gives a running listing what the linker is doing.

0 Kudos
PR11
Beginner
610 Views

Thank you for the suggestion. However, this did not help solving the problem.

Providing a specific answer to Question # 2 may help identifying the source of the problem. Thanks again.

0 Kudos
Ron_Green
Moderator
601 Views

We need to full text of the error message, and preferably the entire buildlog.htm file

0 Kudos
Reply