在Windows 7中,执行Fortran代码在Geany下行不通
题
我很难获得一件简单的fortran90代码。这是Helloworld.f90的代码:
PROGRAM hello
IMPLICIT NONE
PRINT *,"Hello world!"
END PROGRAM hello
当我编译和构建时,没有错误。但是,一旦我单击执行,此错误就会出现在命令提示符中:
'"./helloworld"' is not recognized as an internal or external command, operable program or batch file.
我该如何工作?我将Geany用作IDE,并且在使用Ubuntu Linux时可以正常工作。在我在Windows 7下运行它的时候,我会遇到这个问题。这些是编译和构建命令:
Compile: gfortran -Wall -c "helloworld.f90" (in directory: C:\Users\Eddy\Documents\Code\Fortran)
Build: gfortran -Wall -o "helloworld" "helloworld.f90" (in directory: C:\Users\Eddy\Documents\Code\Fortran)
解决方案 2
事实证明,毕竟我没有安装Fortran编译器!我遵循 这里 安装它。
不隶属于 StackOverflow