How to run fortran on mac

Discussion in 'Mac Programming' started by phamnu, Aug 25, 2013.

  1. phamnu, Aug 25, 2013
    Last edited: Aug 25, 2013

    phamnu macrumors newbie

    Aug 25, 2013
    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
  2. MasConejos macrumors regular


    Jun 25, 2007
    Houston, TX
    I believe that navigating to the folder containing a.out and typing:
    ...(don't forget the leading dot) will run the program.

Share This Page