Re: linking problems with HDF5 on cygwin...

NOTE: The netcdf-hdf mailing list is no longer active. The list archives are made available for historical reasons.

Hi, Ed.

This looks like your linker can't find the main HDF5 library.  Are you
linking against both libhdf5.a and libhdf5_hl.a?  Are they given to the
linker in the right order?  libhdf5_hl.a should come first, I believe, 
since it depends on libhdf5.a.

James Laird

On Wed, 17 Aug 2005, Ed Hartnett wrote:
> Howdy HDF5 folk!
> 
> I recently updated from the HDF5 repository and compiled on
> windows/cygwin.
> 
> As far as I can tell, all tests passed.
> 
> When trying to use the HL API, though, I get the following link
> errors:
> 
> make tst_h_dimscales.exe
> /bin/sh ../libtool --tag=CC --mode=link cc -g -Wall -Wno-inline
> -Wno-cast-qual -Wno-padded  -g -L. -L../libsrc4
> -L/cygdrive/c/hdf5/hdf5/lib  -o tst_h_dimscales.exe  tst_h_dimscales.o
> libnetcdf.la -lhdf5 -lhdf5_hl 
> cc -g -Wall -Wno-inline -Wno-cast-qual -Wno-padded -g -o
> tst_h_dimscales.exe tst_h_dimscales.o  -L/cygdrive/c/netcdf-3/libsrc4
> -L/cygdrive/c/hdf5/hdf5/lib ./.libs/libnetcdf.a
> /cygdrive/c/hdf5/hdf5/lib/libhdf5.a
> /cygdrive/c/hdf5/hdf5/lib/libhdf5_hl.a -lz
> /cygdrive/c/hdf5/hdf5/lib/libhdf5_hl.a(H5LT.o): In function
> `H5LTmake_dataset_string':
> /cygdrive/c/hdf5/hl/src/H5LT.c:509: undefined reference to
> `_H5Tset_strpad'
> /cygdrive/c/hdf5/hdf5/lib/libhdf5_hl.a(H5LT.o): In function
> `H5LTset_attribute_string':
> /cygdrive/c/hdf5/hl/src/H5LT.c:1130: undefined reference to
> `_H5Tset_strpad'
> /cygdrive/c/hdf5/hdf5/lib/libhdf5_hl.a(H5LT.o): In function
> `H5LT_set_attribute_string':
> /cygdrive/c/hdf5/hl/src/H5LT.c:2853: undefined reference to
> `_H5Tset_strpad'
> collect2: ld returned 1 exit status
> make: *** [tst_h_dimscales.exe] Error 1
> bash-3.00$ 
> 
> Has anyone seen this before?
> 
> Thanks!
> 
> Ed
> 
> 
> 
> 


  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-hdf archives: