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?
連結已複製
2 回應
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?
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?