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.
Hans Vahlenkamp <address@hidden> wrote: > ... As you probably know, the > NDEBUG macro is needed to enable proper support for >2GB files when > compiling the netCDF library. It's true that you can avoid the assertion bug that prevents support for files larger than 2GB by compiling the whole netCDF library with the -DNDEBUG flag, but you can also just compile the file libsrc/posixio.c with -DNDEBUG, or you can do either of the following instead: - delete the erroneous assertion assert(offset < X_INT_MAX); /* sanity check */ on line 277 of libsrc/posixio.c in netCDF 3.5.0, or - build from the latest beta test version of netCDF available from ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-beta.tar.Z --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu