Karl
November 26, 2015, 5:11pm
1
I am trying to build and use HDF5 1.8.16 using Thread-safety and shared
libraries.
1.8.15.1 works well, but I miss the option to check if the library is
thread-safe.
When I try to use 1.8.16, I get 5 unresolved external that are located in
h5tpublic.h
I am including "hdf5.h", compiling the app works but it fails at linking.
LNK2001 unresolved external symbol
_H5T_NATIVE_UCHAR_g
_H5T_NATIVE_USHORT_g
_H5T_NATIVE_DOUBLE_g
_H5P_CLS_DATASET_CREATE_ID_g
Anyone felt into that trap already ? Any clue or sollution ?
Regards,
Karl
gheber
November 30, 2015, 2:11pm
2
Karl, how are you? I believe I ran into the same issue. It turns out that
you need the following preprocessor definition when compiling the source files:
H5_BUILT_AS_DYNAMIC_LIB=1
Let me know how that goes!
Best, G.
ยทยทยท
From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org ] On Behalf Of Karl Rioux
Sent: Thursday, November 26, 2015 11:12 AM
To: hdf-forum@lists.hdfgroup.org
Subject: [Hdf-forum] Linking issue with shared libraries in VS2012 applications HDF5 1.8.16
I am trying to build and use HDF5 1.8.16 using Thread-safety and shared libraries.
1.8.15.1 works well, but I miss the option to check if the library is thread-safe.
When I try to use 1.8.16, I get 5 unresolved external that are located in h5tpublic.h
I am including "hdf5.h", compiling the app works but it fails at linking.
LNK2001 unresolved external symbol
_H5T_NATIVE_UCHAR_g
_H5T_NATIVE_USHORT_g
_H5T_NATIVE_DOUBLE_g
_H5P_CLS_DATASET_CREATE_ID_g
Anyone felt into that trap already ? Any clue or sollution ?
Regards,
Karl