PDA

View Full Version : Programming with Fortran using Mac OS X 10.4.11




notaprogrammer
Jul 24, 2008, 12:48 AM
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



TheFuel
Jul 24, 2008, 05:40 AM
Following the instructions here (http://gcc.gnu.org/wiki/GFortranBinariesMacOS) to install gfortran. Then use your favorite text editor and terminal.

Am3822
Jul 24, 2008, 09:06 AM
CarbonEmacs (http://homepage.mac.com/zenitani/emacs-e.html) supports fortran syntax highlighting and compilation (to a certain extent).

notaprogrammer
Jul 24, 2008, 12:35 PM
Hi guys,

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

Patrick