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.


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


At 11:57 AM 8/17/2005, Ed Hartnett wrote:
Howdy HDF5 folk!

I recently updated from the HDF5 repository and compiled on

As far as I can tell, all tests passed.

When trying to use the HL API, though, I get the following link

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 -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_hl.a -lz
/cygdrive/c/hdf5/hdf5/lib/libhdf5_hl.a(H5LT.o): In function
/cygdrive/c/hdf5/hl/src/H5LT.c:509: undefined reference to
/cygdrive/c/hdf5/hdf5/lib/libhdf5_hl.a(H5LT.o): In function
/cygdrive/c/hdf5/hl/src/H5LT.c:1130: undefined reference to
/cygdrive/c/hdf5/hdf5/lib/libhdf5_hl.a(H5LT.o): In function
/cygdrive/c/hdf5/hl/src/H5LT.c:2853: undefined reference to
collect2: ld returned 1 exit status
make: *** [tst_h_dimscales.exe] Error 1

Has anyone seen this before?



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

(217)333-0238 (office)
(217)244-1987 (fax)

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