Re: linking problems with HDF5 on cygwin...

Ed,

Probably  -lhdf5_hl should be before -lhdf5....

Elena


At 11:57 AM 8/17/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



--
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx

-----------------------------------------------------------------------------------------------
Elena Pourmal, HDF QA, Maintenance and Support Team Leader
NCSA University of Illinois at Urbana-Champaign
605 E. Springfield Ave.
Champaign, IL 61820

epourmal@xxxxxxxxxxxxx
(217)333-0238 (office)
(217)244-1987 (fax)
----------------------------------------------------------------------------------------------