PDA

View Full Version : How to run fortran on mac




phamnu
Aug 25, 2013, 08:43 PM
Hi everyone,
I am at the beginning step of programming,
so forgive me if my question is stupid.

I want to compile and run Fortran on Mac.
I tried google and found how to install g77.
I did compile my program already, after compiling and fixing all errors , a file with the name a.out appear in my folder.
But I don't know how to run it.

I tried google but people only talk about how to install and compile gfortran on Mac, maybe noone need to ask this stupid question as me. :o

Please help,
Best regards



MasConejos
Aug 25, 2013, 09:56 PM
I believe that navigating to the folder containing a.out and typing: ./a.out ...(don't forget the leading dot) will run the program.