This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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. --Russ > 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