[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #JVE-114902]: Re: netcdf & fortran
- To: cjw@xxxxxxxx
- Subject: [netCDF #JVE-114902]: Re: netcdf & fortran
- From: "Unidata netCDF Support" <support-netcdf@xxxxxxxxxxxxxxxx>
- Date: Wed, 05 Mar 2008 09:07:09 -0700
- Delivered-to: support-netcdf@unidata.ucar.edu by laraine.unidata.ucar.edu (Postfix) with ESMTP id F229ECB1A5; Wed, 5 Mar 2008 09:07:09 -0700 (MST) id E27E0D5116; Wed, 5 Mar 2008 09:07:09 -0700 (MST)
Hi Chris,
> I performed the following to get a usable f77 build. Not sure if this is the
prevailing wisdom...
Yes, that's what I would have recommended.
I think we have been able to build netCDF-3.6.2 on Linux systems using F90=g95
and F77=g77,
or just setting FC=gfortran which then gets used for both Fortran 77 and
Fortran 90 interfaces.
Mark Hadfield has reported
Good old g77 adds two underscores to its global symbols. G95 is
binary-compatible with g77 and also uses two underscores. Gfortran
is not binary-compatible and uses a single underscore. However the
gfortran -ff2c switch causes it to use two. See
http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gfortran/Code-Gen-Options.html#Code-Gen-Options
http://www.g95.org/docs.html
--Russ
Russ Rew UCAR Unidata Program
russ@xxxxxxxxxxxxxxxx http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: JVE-114902
Department: Support netCDF
Priority: Normal
Status: Closed