Programming with Fortran using Mac OS X 10.4.11

Discussion in 'Mac Programming' started by notaprogrammer, Jul 23, 2008.

  1. notaprogrammer macrumors newbie

    Jul 23, 2008
    Hi guys,

    I am not really all that familiar with programming, but I do know how to get up and running on a Linux desktop machine. My question is once I have installed a Fortran compiler how to I get up an running. I mean how does one ask the computer to open a text editor, to write the program on, and then ask
    the computer to compile it.

    For example on the Linux machine. I write

    nedit filename.f90 (provided the file has already ben created. I am not sure how to do so if it hasn't. )

    then I write my program and save

    type in the terminal

    gfortran filename.f90 to compile
    press enter
    type ./a.out to run

    Sorry if this is a really easy question, but I am not really very confident when it comes to dealing with computers
  2. TheFuel macrumors newbie


    Feb 8, 2008
    Bothell, WA (USA)
    Following the instructions here to install gfortran. Then use your favorite text editor and terminal.
  3. Am3822 macrumors 6502


    Aug 16, 2006
    Groningen, The Netherlands
    CarbonEmacs supports fortran syntax highlighting and compilation (to a certain extent).
  4. notaprogrammer thread starter macrumors newbie

    Jul 23, 2008
    Hi guys,

    I figured out the problem with some help. Thanks for your helpful advice.


Share This Page