Setting XCode FORTRAN compiler option

I have not figured out how to set the correct FORTRAN compiler in XCode. It is pointing to an old IBM compiler that is not even in my path anymore.

I am running the latest Xcode 3.2.2 with gfortran from GCC 4.6.0

If this is not the correct forum for this, please let me know. I scoured the XCode documentation and came up blank.

Thanks,

Jeff

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hi Jeff, In your XCode

Hi Jeff,

In your XCode project, go under Targets, and select the specific target you want to compile. Then click ⌘+I to get the Info window. Go to Rules tab, and click on the '+' button (at the bottom left of the window) to add a rule. There you can select your file type ('Fortran source files') and the specific compiler you wish to use.

Note that in the case several rules apply to the same source file type, the first rule (in order of appearance) will apply.

Hope that helps.
Patrick

Is the Xcode fortran plugin

Is the Xcode fortran plugin still current? The plugins listed on http://www.macresearch.org/xcode_gfortran_plugin_update seem a little dated. The installer includes an older version of gfortran although I suppose you could install the newer version after using the plug-in installer.