When I type try to run gfortran, windows says "command not found" In the black window that opens, you can use gfortran to compile your Fortran code (assuming your program is file code.f95 in the current directory): gfortran code.f95 -o code.exe This creates an executable named code.exe. To open a command prompt, click on Start menu, choose Accessories and then Command Prompt, or choose Run and type "cmd". Gfortran is now available from command-line. See Windows for general GCC on Windows information. Please report any bugs to the mailing-list. The installer sets your PATH environment variable, so that simply typing gfortran in a command prompt will run the compiler. Download the installer, and run it (accept the GNU Public License, choose an directory to install gfortran, and let it work for you!). Stand-alone gfortran binaries for Windows are available as an installer.
0 Comments
Leave a Reply. |