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.
> So my company is trying to work on a rpogram released by the Navy that > relies on hdf5 and netcdf. We ahve built both of these prgrams, and are > now trying to install the Navy prgram where we are getting messages saying > "Undefined symbols from libnetcdf.a in file nc4hdf.o " Do you ahve any > idea why this might be occuring? > > Sounds like you need to install netCDF-4, the latest netCDF release, and make sure you are linking to it. If you look where you have installed netCDF there is a VERSION file, which tells what version you have. If it is anything other than "4.0" you need to upgrade. Get netCDF-4.0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.0.tar.gz and follow the instructions here: http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Quick-Instructions.html#Quick-Instructions Once you have built, checked, and installed netcdf-4, try building your navy code again, making sure that the -I and -L options point to the locations where you installed netCDF-4. Let me know if this doesn't work for you. Ed Ticket Details =================== Ticket ID: GLZ-655716 Department: Support netCDF Priority: Normal Status: Closed