Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

[netCDF #JVE-114902]: Re: netcdf & fortran



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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690