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
초급자
740 조회수

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 포인트
3 응답
andrew_4619
명예로운 기여자 III
683 조회수

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 포인트
PR11
초급자
617 조회수

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 포인트
Ron_Green
중재자
608 조회수

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

0 포인트
응답