![]() |
|
Downloading Fortran Compiler - Printable Version +- Southperry.net (https://www.southperry.net) +-- Forum: Social (https://www.southperry.net/forumdisplay.php?fid=14) +--- Forum: Rubik's Cube (https://www.southperry.net/forumdisplay.php?fid=58) +--- Thread: Downloading Fortran Compiler (/showthread.php?tid=66441) |
Downloading Fortran Compiler - Marksman Bryan - 2013-08-20 I am trying to figure out how to download a Fortran compiler that can do the most elementary operations for Windows 7 64-bit One that is free and easy to use would be preferred but if there is a good one that you have to purchase that works, too. Honestly I have no idea what I'm doing but from what I've looked at I have found this download site (lahey.com), which offers free 30-day trial versions which I assume you can purchase a full version of if you're satisfied. Anyone with Fortran knowledge able to enlighten me on better options? notes: does not have to be Fortran 90 or any other "modern" version Thanks! Downloading Fortran Compiler - Fiel - 2013-08-20 http://gcc.gnu.org/wiki/GFortranBinariesWindows Downloading Fortran Compiler - Marksman Bryan - 2013-08-20 Fiel Wrote:http://gcc.gnu.org/wiki/GFortranBinariesWindows Following through on that, I installed the GNU FORTRAN Compiler from MinGW.
Spoiler
I'm trying to download FORTRAN on my (87 y.o.) boss's home computer so I need to write up a list of step-by-step instructions on how I do it. All that's left is to verify this download works. Will it work if I run gfortran fileName in command prompt? Downloading Fortran Compiler - Locked - 2013-08-20 Don't download MinGW32 binaries, it's.. outdated and quite possibly garbage in this day and age. Download MinGW64 binaries instead as they're better and actually updated. By far the easiest to install would probably be STL's Nuwen distro, located here. As for invoking the command-line, I'll imagine it's similar to how it is for other languages, e.g. Code: g++ -O2 fileName -o fileName.exeis how you'd do it in C++. You can find more info on the docs. Downloading Fortran Compiler - Marksman Bryan - 2013-08-20 Locked Wrote:Don't download MinGW32 binaries, it's.. outdated and quite possibly garbage in this day and age. I have installed MinGW (successfully, according to the instructions). I apologize in advance, but I do not know what I am looking at nor do I know what I'm supposed to be looking for. What do you mean by WinGW64 binaries? Is what I already have installed enough to compile fortran code? I'm trying to find something where "ALL I NEED IT TO DO ARE THE MOST ELEMENTARY OPERATIONS THAT I HAVE BEEN DOING AT WORK FOR 58 YEARS." Downloading Fortran Compiler - Locked - 2013-08-21 Marksman Bryan Wrote:I have installed MinGW (successfully, according to the instructions). Probably. It's just always better to get newer versions of the compilers. Downloading Fortran Compiler - Marksman Bryan - 2013-08-24 So, turns out I got fortran and python confused and ended up getting python instead of fortran. Google says to type "g77 -ffree-form fileName.for -o fileName.exe" to compile, but cmd gives me "g77 is not recognized as an internal or external command, operable program or batch file." Downloading Fortran Compiler - SaptaZapta - 2013-08-24 Marksman Bryan Wrote:So, turns out I got fortran and python confused and ended up getting python instead of fortran. You have to add the directory in which it's installed into your PATH. Downloading Fortran Compiler - Marksman Bryan - 2013-08-24 Don't have the knowledge, time, or understanding to figure out how a free compiler works so I downloaded Simply Fortran. I can get the basic "hello world" program to run, but I still can't my own code to work because I don't understand squat about fortran or where files need to be or how to set up new projects. I've used Netbeans before for java and I assume this is similar but I cannot figure out for the life of me how it works. EDIT: I am trying to compile Code: PROGRAM SIMPLEAttempting to build gives Code: PRINT *,\x94A=\x94,A,\x94, B=\x94,B,\x94, C=\x94,Cno idea what's going on Downloading Fortran Compiler - SaptaZapta - 2013-08-24 Change the double quotes to single quotes. http://www.personal.psu.edu/faculty/j/h/jhm/f90/statements/print.html Your compiler apparently isn't Fortran 90? Downloading Fortran Compiler - Marksman Bryan - 2013-08-24 SaptaZapta Wrote:Change the double quotes to single quotes. Thank you! Always something stupidly simple. And this frustration is why I chose not to be a comp sci major. It compiled and ran like I wanted it to. I think I'm done here, but I'll post again if I need any more help. |