[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch for netcdf-3.3.1 for use with g77 fortran compiler
- Subject: Re: Patch for netcdf-3.3.1 for use with g77 fortran compiler
- Date: Wed, 04 Feb 1998 10:44:47 -0700
> From: Mike Romberg <address@hidden>
> Organization: NOAA / FSL
> To: address@hidden
> Subject: Patch for netcdf-3.3.1 for use with g77 fortran compiler
Hi Mike,
> I was able to build the netcdf fortran api with the g77 compiler
> bundled with the egcs version of netcdf on linux. Below is the patch
> to cfortran.h which I used. It is probably not the correct solution.
> The important bit is than g77 seems to work when f2cFortran is
> defined. I guess that this should work on all platforms (not just
> linux as my patch has).
>
> You can find out more about the egcs version of gcc at this URL:
>
> http://www.cygnus.com/egcs/
>
> /* Remainder of cfortran.h depends on the Fortran compiler. */
>
> ! #ifdef CLIPPERFortran
> #define f2cFortran
> #endif
>
> /* Remainder of cfortran.h depends on the Fortran compiler. */
>
> ! #if defined(CLIPPERFortran) || (defined(linux) && defined(__GNUC__))
> #define f2cFortran
> #endif
Thanks!
This looks great, and we'll incorporate it into the next version in a
way that will work for g77 on any platform.
--Russ
_____________________________________________________________________
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu