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

[netCDF #PWR-674353]: NETCDF library question

Hi Ted,

> I just finished installing the latest version (4.1.3) of netcdf.a
> on our Linux64 computer venus.
> Users are getting unresolved references to nf_open and other nf_*
> subroutines, e.g. nf_inq_dimid.
> These were in the 4.1.1 version of netcdf.a.
> Are the nf_* subroutines no longer supported?

They are still supported (and we're committed to supporting that version
2 Fortran API for the foreseeable future).  Some possibilities why
you don't see them include:

  - They were installed in a separate Fortran library, libnetcdff.a (note
    the "ff"), so to link an application requires -lnetcdf -lnetcdff
  - The 4.1.3 library was built with that API disabled, which is not the
    default, but requires one of the configure options --disable-v2,
    --disable-f77, --disable-fortran, or --enable-c-only.
  - The configure script was unable to find a Fortran compiler that worked
    for Fortran-77 or was unable to link objects created by the C compiler
    with the Fortran compiler it found.

Looking at the output from running "nc-config --all" or the output of the 
configure script from when the 4.1.3 library was built may clarify what's 
going on.


> Ted Terpstra
> General Atomics - Fusion
> San Diego, CA
> 4.1.1 netcdf.a
> 163 venusa: nm /c/source/netcdf/netcdf-4.1.1/lib/libnetcdf.a | fgrep -i 
> inq_dimid
> 0000000000000439 T nc_inq_dimid
> U nc_inq_dimid
> 0000000000000673 t __netcdf_nf90_inq_dimid_END
> 0000000000000640 T netcdf_nf90_inq_dimid_
> U nf_inq_dimid_
> U nc_inq_dimid
> 0000000000000373 T nf_inq_dimid_
> ------------------------------------------------------------------------------------
> 4.1.3 netcdf.a
> 164 venusa: nm /c/source/netcdf/netcdf-4.1.3/lib/libnetcdf.a | fgrep -i 
> inq_dimid
> U nc_inq_dimid
> 0000000000000230 T nc_inq_dimid
> 0000000000000530 T NC3_inq_dimid
> U NC3_inq_dimid
> 165 venusa:

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

Ticket Details
Ticket ID: PWR-674353
Department: Support netCDF
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.