Hi,
I have trouble to link to dynamic hdf5 library on Visual Studio 2005. The
same error happens for hdf5 1.6.7 and 1.8.1. I am using the binary HDF5
library downloaded from hdfgroup web site. If I link my app with static
hdf5.lib, then it works fine.
Can somebody help me?
Thank you,
Grant
------ Build started: Project: qindex, Configuration: Release Win32 ------
Linking...
Creating library C:\EMAN\build\bin\Release\qindex.lib and object
C:\EMAN\build\bin\Release\qindex.exp
EM.lib(EMhdf2.obj) : error LNK2019: unresolved external symbol
_H5P_CLS_FILE_ACCESS_g referenced in function "public: static int __cdecl
EMhdf2::init_test(char const *)" (?init_test@EMhdf2@@SAHPBD@Z)
EM.lib(EMhdf2.obj) : error LNK2019: unresolved external symbol
_H5T_NATIVE_FLOAT_g referenced in function "public: int __thiscall
EMhdf2::read_data(float *,int)" (?read_data@EMhdf2@@QAEHPAMH@Z)
EM.lib(EMhdf.obj) : error LNK2001: unresolved external symbol
_H5T_NATIVE_FLOAT_g
EM.lib(EMhdf2.obj) : error LNK2019: unresolved external symbol
_H5T_NATIVE_DOUBLE_g referenced in function "private: int __thiscall
EMhdf2::write_attr(int,char const *,class EMObject)" (?write_attr@EMhdf2
@@AAEHHPBDVEMObject@@@Z)
EM.lib(EMhdf2.obj) : error LNK2019: unresolved external symbol
_H5T_NATIVE_INT_g referenced in function "private: int __thiscall
EMhdf2::write_attr(int,char const *,class EMObject)" (?write_attr@EMhdf2
@@AAEHHPBDVEMObject@@@Z)
EM.lib(EMhdf.obj) : error LNK2001: unresolved external symbol
_H5T_NATIVE_INT_g
EM.lib(EMhdf2.obj) : error LNK2019: unresolved external symbol _H5T_C_S1_g
referenced in function "private: int __thiscall EMhdf2::write_attr(int,char
const *,class EMObject)" (?write_attr@EMhdf2@@AAEHHPBDVEMObject@@@Z)
EM.lib(EMhdf.obj) : error LNK2001: unresolved external symbol _H5T_C_S1_g
EM.lib(EMhdf2.obj) : error LNK2019: unresolved external symbol
_H5T_IEEE_F64LE_g referenced in function "private: int __thiscall
EMhdf2::write_attr(int,char const *,class EMObject)" (?write_attr@EMhdf2
@@AAEHHPBDVEMObject@@@Z)
EM.lib(EMhdf2.obj) : error LNK2019: unresolved external symbol
_H5T_IEEE_F32LE_g referenced in function "private: int __thiscall
EMhdf2::write_attr(int,char const *,class EMObject)" (?write_attr@EMhdf2
@@AAEHHPBDVEMObject@@@Z)
EM.lib(EMhdf2.obj) : error LNK2019: unresolved external symbol
_H5T_STD_I32LE_g referenced in function "private: int __thiscall
EMhdf2::write_attr(int,char const *,class EMObject)" (?write_attr@EMhdf2
@@AAEHHPBDVEMObject@@@Z)
C:\EMAN\build\bin\Release\qindex.exe : fatal error LNK1120: 8 unresolved
externals
Build log was saved at
"file://c:\EMAN\build\qindex\qindex.dir\Release\BuildLog.htm"
qindex - 12 error(s), 0 warning(s)