Hello, I try to use HDF under Cygwin. I have downloaded HDF 5 version 1.8.9, run configure, make, make install and now I try to link my program. The make call builds only *.a files and I get the linker error:
/cygdrive/c/opt/library/hdf/5-1.8.9/lib/libhdf5_cpp.a(H5File.o):H5File.cpp:(.tex t+0x2026): undefined reference to `_H5Rget_obj_type1' /cygdrive/c/opt/library/hdf/5-1.8.9/lib/libhdf5_cpp.a(H5CommonFG.o):H5CommonFG.c pp:(.text+0x576): undefined reference to `_H5Dcreate2' /cygdrive/c/opt/library/hdf/5-1.8.9/lib/libhdf5_cpp.a(H5CommonFG.o):H5CommonFG.c pp:(.text+0x6fd): undefined reference to `_H5Dopen2' /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: /cygdrive/c /opt/library/hdf/5-1.8.9/lib/libhdf5_cpp.a(H5CommonFG.o): bad reloc address 0x4 in section `.rdata$_ZTVN2H58CommonFGE[vtable for H5::CommonFG]' On the linker command I have added the -lhdf5 and -lhdf5_cpp, the same calls under Linux and OSX works and the make script creates also dynamic libraries (*.so and *.dylib). Can me anybody help to solve the problem? Thanks Phil _______________________________________________ Hdf-forum is for HDF software users discussion. Hdf-forum@hdfgroup.org http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org