Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 27, 2006, 08:21 PM   #1
ScKaSx
macrumors regular
 
Join Date: Feb 2006
Compiling and Running Fortran

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
ScKaSx is offline   0 Reply With Quote
Old Feb 27, 2006, 08:29 PM   #2
balamw
Moderator
 
balamw's Avatar
 
Join Date: Aug 2005
Location: New England, USA
Quote:
Originally Posted by ScKaSx
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/showthre...&highlight=g77

B
__________________
MBA (13" 1.7 GHz 128GB), UMBP (15" SD 2.8 GHz), UMB (13" 2.4 GHz), iMac (17" Yonah), 32GB iPad 3 WiFi+LTE, 64 GB iPad WiFi, 32 GB iPhone 5, Airport Extreme
balamw is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Fortran g77 on Mac nicolaus Mac Programming 5 Feb 7, 2013 09:09 AM
Compiling 10.8 binaries on machine running 10.7 Macula Mac Programming 6 Sep 14, 2012 04:15 AM
Compiling and running C++ programs thrill4rishabh Mac Programming 30 Jul 29, 2012 06:19 PM
Compiling and running C++ programs thrill4rishabh Mac OS X 10.7 Lion 2 Jul 24, 2012 04:48 PM
Fortran and Netcdf dukebound85 Mac Programming 3 Jun 21, 2012 12:31 AM

Forum Jump

All times are GMT -5. The time now is 07:19 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC