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.
Edin,
The errors you are seeing from "make check" when building netCDF-4 are caused
by
trying to link the netCDF C++ test program to a 64-bit library after compiling
the C++ test program using g++ but without a "-m64" flag.
There are two ways to fix this:
1. Add "-m64" to the CXXFLAGS environment variable, as you already have for
CFLAGS. Then run "make distclean" and rerun the configure script before
running "make check".
2. Build netcdf-4 without the C++ interface, which is not used in any of the
other utilities and doesn't support most netCDF-4 features yet anyway.
You can do this by setting the CXX environment variable to '' before
running "make distclean", configure, and "make check".
--Russ
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: LKB-522731
Department: Support netCDF
Priority: Normal
Status: Closed