• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: xcode and fortran
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xcode and fortran


  • Subject: Re: xcode and fortran
  • From: Bruce Truax <email@hidden>
  • Date: Tue, 20 Sep 2005 11:04:24 -0400

Joe,

It might seem that a gcc version of FORTRAN should just work in XCode but
alas, it is not to be.  A new compiler requires a set of plug-ins to be
written in order to integrate with Xcode.  The only compiler vendor that has
done this is IBM with their XLF compiler and with the switch to Intel
processors they have dropped their support as of OSX 10.3.9.  There are many
users who claim that the latest version of XLF works properly in Tiger but I
do not have personal experience and I would be rather leery to pay the money
for the compiler and expect it to work.  The best solution which I have
found is to use g77 (or g95) with a conventional Make file.  You import this
into Xcode as an external target and use the Xcode editor and IDE for
maintaining the project.  I have never been able to get the debugger to work
properly but then I have a rather unique situation where my FORTRAN
executable is run as a separate process and communicates via a pipe to my
Cocoa UI.  I have been told that GDB should work.

If you want a binary version of the compiler which is simple to install you
can get it at

http://hpc.sourceforge.net/

You will see that this page has many versions of FORTRAN compilers for OSX.
My advice is to stay away from gfortran for now, the last time I tried it it
was not quite ready for prime time.

Bruce Truax
--
____________________________________________________________
Bruce E. Truax                 email:  email@hidden
Optical Engineering Consultant

             Diffraction Limited Design LLC
388 Wedgewood Road             voice:  860-276-0450
Southington, CT  06489         fax:    860-620-9026
http://www.dld-llc.com
_____________________________________________________________


On 9/19/05 2:39 AM, "Joe Kurtz" <email@hidden> wrote:

> Since there is a GCC version out there with fortran
> for a mac, does anyone know how can I get xcode to use
> it when I have fortran code modules to compile?
>
> Joe


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >xcode and fortran (From: Joe Kurtz <email@hidden>)

  • Prev by Date: Re: Link Error: Relocation overflow for relocation entry
  • Next by Date: library suffix (TN 2124)
  • Previous by thread: Re: xcode and fortran
  • Next by thread: xcode and fortran
  • Index(es):
    • Date
    • Thread