john_benedict
john_benedict

Reputation: 11

Installing Fortran on Windows

I'm attempting to install gfortran on windows 10 so that I can start to learn programming in fortran.

I've installed the mingw-w64 files from here:

[https://sourceforge.net/p/mingw-w64/mailman/message/37287751/][1]

Where do I go from here!?

I've also tried using the Msys2 approach described here:

[https://masuday.github.io/fortran_tutorial/install_gfortran_windows.html][1]

When I run the gfortran command in Msys2 I get a fatal error message saying that there are no input files.

Grateful if anybody has any suggestions, please?

Cheers.

Upvotes: 1

Views: 1546

Answers (1)

anymous
anymous

Reputation: 52

[...] I get a fatal error message saying that there are no input files.

You are getting this error because you didn't provide any files to compile.

Write the program, save it to file and run: gfortran -o program.exe filename; program.exe

NOTE: File extension must be .f90

Upvotes: 2

Related Questions