[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cfortran.h for Mac OS X



>To: address@hidden
>From: "Shepard, Ron L." <address@hidden>
>Subject: Re: 20010920: cfortran.h for Mac OS X
>Organization: Argonne National Laboratory
>Keywords: MacOSX f2c cfortran.h

Hi Ron,

> I found in one of your online mail archives that you mention porting
> some codes to Mac OS X.  Did you port cfortran.h, and if so, is it
> possible to get from you a copy of this header file.  I'm interested in
> MacOS X (10.0.4) and Absoft Fortran Pro (v. 7.0).  I use both f77 and
> f90, and almost always use the compiler options to fold symbols to lower
> case and to append trailing underscores.  For example:
> 
> #  -q=quiet, -N15=append underscore, -f=fold symbols to lower case,
> #  -N3 include record lenghts in unformatted sequential file records
> f77 -c -O -N15 -f -N3 file.f
> 
> However, if you have a general port for other compiler options, that
> would be even better. 

I just used "f2c" for Fortran on Mac OS X, and cfortran.h already
supports that as long as you include the flag "-Df2cFortran" as a C
compiler flag for C code called from Fortran.

I got f2c from 

   http://dryden.biol.yorku.ca/darwin.html

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu