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 Jean-Guillaume, Sorry to have taken so long to respond. Our netCDF-4 developer is away from email until next week. The error you are seeing appears to be caused by not having the "config.h" file in the directory above the libsrc/ directory where you are using the "nc.h" file. This "config.h" file is not included in the distribution, it is generated when you run the "configure" script before running "make check install". A properly built "config.h" file will include definitions like this: /* The size of `off_t', as computed by sizeof. */ #define SIZEOF_OFF_T 8 /* The size of `short', as computed by sizeof. */ #define SIZEOF_SHORT 2 /* The size of `size_t', as computed by sizeof. */ #define SIZEOF_SIZE_T 4 as well as many others determined at build time by running the configure script. Please see the installation instructions: http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Quick-Instructions.html for how to run the configure script. You will need to run "make distclean" before running the configure script or start with a new copy of the distribution. Also, if you have any problems with running the configure script or other problems with building and testing the distribution, please send us the output requested here: http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Reporting-Problems.html Thanks! --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: UXO-652363 Department: Support netCDF Priority: Normal Status: Closed