PDA

View Full Version : Compiling and Running Fortran




ScKaSx
Feb 27, 2006, 07:21 PM
Hi All,

Here's a make file I'm trying to run:

CC = g++
FF = g77
CLIB = -lm
LIBS =-L/usr/lib/lg2c
CFLAGS = -O2 -I$(HOME)/include
FFLAGS =
OBJS = fit1.o lmdif.o
main: $(OBJS)
$(CC) $(CFLAGS) $(OBJS) $(LIBS) $(CLIB) -o run
lmdif.o: lmdif.f
$(FF) $(FFLAGS) -c lmdif.f
fit1.o: fit1.cc
$(CC) $(CFLAGS) -c fit1.cc

Does anyone know how I can make this run on my mac? I know I will need a fortran compiler (where do I get one and how do I install it)? Thanks a bunch

Cheers



balamw
Feb 27, 2006, 07:29 PM
Does anyone know how I can make this run on my mac? I know I will need a fortran compiler (where do I get one and how do I install it)? Thanks a bunch

Search for g77 and you'll find.

http://forums.macrumors.com/showthread.php?t=161261&highlight=g77

B