Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

phamnu

macrumors newbie
Original poster
Aug 25, 2013
1
0
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. :eek:

Please help,
Best regards
 
Last edited:

MasConejos

macrumors regular
Jun 25, 2007
149
43
Houston, TX
I believe that navigating to the folder containing a.out and typing:
Code:
./a.out
...(don't forget the leading dot) will run the program.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.