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

linking to function statements

thevoo
初學者
668 檢視
I have written a short Fortran 90 program that invokes a function in the main program (see attached file). The funciton statement is written outside (below) the main program. The program will complile without errors build will not build due to linker errors(unresolved externals). I assume the linker errors refer to the function statement. What am I doing wrong?
0 積分
2 回應
TimP
榮譽貢獻者 III
668 檢視
No link error here, and it runs, with IFL 7.1 command prompt window.
Stylistically, a function with side effects, particularly the obsolete PAUSE, is out of line, and some compilers might reject it.
Did you set the environment properly, so that the linker finds the libraries you should have installed with the compiler?
thevoo
初學者
668 檢視
My "build" configuration was directing to wrong run-time library--should have been "Quick-Win." Thanks for your help.
回覆