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
Beginner
496 Views
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 Kudos
2 Replies
TimP
Honored Contributor III
496 Views
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?
0 Kudos
thevoo
Beginner
496 Views
My "build" configuration was directing to wrong run-time library--should have been "Quick-Win." Thanks for your help.
0 Kudos
Reply