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.
> > Thanks. Your answer prompted me to think of something else. I've > noticed that even though I use --with-szlib, if there's already a > libsz.a in a system directory like /usr/lib, then it will pick this > one up. This sometimes generates undefined references or other > unexpected results. I've had to hard-code the path to the sz library > so this doesn't happen. > > Maybe the same thing is happen with the z library. I will check. > > --Mary > Howdy Mary! Another user also reported problems building with the HDF5/szip combination. But it works for me just fine. Of course, one needs to set the appropriate flags so that the szip library can be found. This worked for me: FFLAGS=-L$HDF5DIR/lib FCFLAGS=-L$HDF5DIR/lib CFLAGS=-L$HDF5DIR/lib CXXFLAGS=-L$HDF5DIR CPPFLAGS=-I$HDF5DIR/include LIBS=-lsz ./configure --enable-netcdf-4 --with-hdf5=$HDF5DIR (Where $HDF5DIR is a directory that contains both HDF5 and szip). In fact, this is now part of my nightly testing. Thanks, Ed Ticket Details =================== Ticket ID: DRB-862049 Department: Support netCDF Priority: Urgent Status: Closed