NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Robert Latham <robl@xxxxxxxxxxx> writes: > On Sun, Jun 29, 2008 at 04:20:55PM +0100, Momme Butenschön wrote: >> When compiling a program linking with netcdf4, hdf5 I get the following >> error: >> >> ifort -r8 -O2 -o ../../../bin/opa model.o ../../../lib/oce/libopa.a >> .../../../lib/libioipsl.a -L/opt/netCDF-4/lib -lnetcdff -lnetcdf >> -L/opt/hdf5/lib -lhdf5 >> /opt/netCDF-4/lib/libnetcdf.so: undefined reference to `H5DSget_num_scales' >> /opt/netCDF-4/lib/libnetcdf.so: undefined reference to `H5DSset_scale' >> /opt/netCDF-4/lib/libnetcdf.so: undefined reference to `H5DSis_scale' >> /opt/netCDF-4/lib/libnetcdf.so: undefined reference to `H5DSiterate_scales' >> /opt/netCDF-4/lib/libnetcdf.so: undefined reference to `H5DSget_scale_name' >> /opt/netCDF-4/lib/libnetcdf.so: undefined reference to `H5DSattach_scale' >> /opt/netCDF-4/lib/libnetcdf.so: undefined reference to `H5DSdetach_scale' >> gmake[1]: *** [../../../bin/opa] Error 1 >> >> >> nm of libnetcdf.a and libnetcdf.so gives >> >> U H5DSget_num_scales >> >> Any ideas what's going wrong? > > You need one more library: "libhdf5_hl" contains the "high level hdf5" > routines. > > ==rob > > -- > Rob Latham > Mathematics and Computer Science Division A215 0178 EA2D B059 8CDF > Argonne National Lab, IL USA B29D F333 664A 4280 315B That's correct, of course. See: http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Using.html Thanks, Ed -- Ed Hartnett -- ed@xxxxxxxxxxxxxxxx
netcdfgroup
archives: