Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 27, 2006, 07: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, 07: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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Xcode 4 and non-C compilers mbarriault Mac Programming 3 Aug 6, 2011 06:51 PM
Help compiling/running graphics in terminal dflem11 Mac Programming 2 Nov 8, 2010 02:42 PM
Nagware Fortran compiler and Leopard Aiueoz Mac Programming 3 Nov 12, 2007 02:39 AM
"Leopard can compile and run all your existing UNIX code." a456 OS X 1 Aug 2, 2007 03:35 AM
Compilation & Running satyam90 Mac Programming 1 Jul 31, 2007 10:57 AM


All times are GMT -5. The time now is 05:16 PM.

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

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