Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

add fortran to xcode?

I've done a little programming on the Mac, and much more on
other Unix. Is there a way to add a Fortran compiler to the xcode developer environment? Either gfortran or absoft
fortran? I have a project I'd like to try porting to the
Mac - it requires fortran, and it would be nice to try
using the xcode environment.
Thanks
David

iMac, eMac, G4 tower, G5 tower, Mac OS X (10.4.3)

Posted on Nov 20, 2005 6:42 AM

Reply
Question marked as Best reply

Posted on Nov 20, 2005 8:03 AM

Hi,

these pages on Mac and HPC helped me to install a Fortran compiler and run some programs.


Volker
7 replies

Nov 20, 2005 1:23 PM in response to dknightd

After installing the Fortran compiler, you can use Xcode to write your code and compile it. You must do two things to use the Fortran compiler (or any other external compiler) with Xcode.

1. Create an External Build System project. External build system projects let you use languages Xcode doesn't natively support, such as Fortran, Python, and Ruby.

2. Tell Xcode to use the Fortran compiler to build your project instead of Xcode's build system.

Jun 1, 2006 11:39 AM in response to Fops3

Welcome to Apple Discussions, Fops3!

I dont know if you are willing to spend the money, but Intel sells a fortran compiler that is Xcode compatible. The page below has a link to educational pricing, if you qualify.

http://www.intel.com/cd/software/products/asmo-na/eng/compilers/fmac/267476.htm

This was just the first compiler I found that seemed to work with Xcode 2.3, there are probably others.

You also might want to read/ask on Apple's fortran developers list:

http://lists.apple.com/mailman/listinfo/fortran-dev

add fortran to xcode?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.