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として使用していますが、Ubuntulinuxを使用すると問題なく動作します。この問題が発生するのは、Windows7で実行したときです。コンパイルコマンドとビルドコマンドは次のとおりです。
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)