Hi Phil,

Please try putting -lhdf5_cpp and -lhdf5 in this order, if you haven't.

Binh-Minh

>-----Original Message-----
>From: [email protected] [mailto:hdf-forum-
>[email protected]] On Behalf Of Kraus Philipp
>Sent: Saturday, June 23, 2012 3:31 PM
>To: HDF Discussion List Users
>Subject: [Hdf-forum] undefined reference during linking with 1.8.9
>
>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.
>[email protected]
>http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
>
>--
>Internal Virus Database is out-of-date.
>Checked by AVG.
>Version: 7.5.549 / Virus Database: 270.9.0/1778 - Release Date: 11/9/2008
>2:14 PM



_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to