Hello
I am getting the following errors while trying to compile a code with Matio. I am usinf 64bit linux version and for HDF5 I am using the hdf5-1.8.14-linux-centos6-x86_64-gcc482-shared version. While configuring I am using the following options
It's failing to link to the hdf5 archive. Before all the "undefined reference" errors, there should be a linking step.
I believe this can be fixed by upating the " --with-hdf5=" path so that it points to the hdf5 dir that contains the directories "include/" and "lib/". So it would probably be "--with-hdf5=/home/shujon/hdf5-1.8.15-patch1-linux-centos7-x86_64-shared/".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I am getting the following errors while trying to compile a code with Matio. I am usinf 64bit linux version and for HDF5 I am using the hdf5-1.8.14-linux-centos6-x86_64-gcc482-shared version. While configuring I am using the following options
./configure --enable-mat73=yes --enable-extended-sparse=yes --with-matlab=/data/MATLAB/R2014a/bin --with-hdf5=/home/shujon/hdf5-1.8.15-patch1-linux-centos7-x86_64-shared/bin --with-default-api-version=v18
Can you kindly help me regarding this? Thanks in advance.
/usr/local/lib/libmatio.so: undefined reference to
H5P_CLS_FILE_CREATE_g' /usr/local/lib/libmatio.so: undefined reference toH5T_NATIVE_SHORT_g'/usr/local/lib/libmatio.so: undefined reference to
H5Pcreate' /usr/local/lib/libmatio.so: undefined reference toH5Tcopy'/usr/local/lib/libmatio.so: undefined reference to
H5Aget_space' /usr/local/lib/libmatio.so: undefined reference toH5Sget_simple_extent_dims'/usr/local/lib/libmatio.so: undefined reference to
H5Eset_auto2' /usr/local/lib/libmatio.so: undefined reference toH5Sget_simple_extent_ndims'/usr/local/lib/libmatio.so: undefined reference to
H5Aget_type' /usr/local/lib/libmatio.so: undefined reference toH5Fcreate'/usr/local/lib/libmatio.so: undefined reference to
H5Sclose' /usr/local/lib/libmatio.so: undefined reference toH5Rcreate'/usr/local/lib/libmatio.so: undefined reference to
H5T_NATIVE_SCHAR_g' /usr/local/lib/libmatio.so: undefined reference toH5Aopen_name'/usr/local/lib/libmatio.so: undefined reference to
H5Tget_class' /usr/local/lib/libmatio.so: undefined reference toH5Acreate2'/usr/local/lib/libmatio.so: undefined reference to
H5Aclose' /usr/local/lib/libmatio.so: undefined reference toH5T_NATIVE_ULONG_g'/usr/local/lib/libmatio.so: undefined reference to
H5Pset_deflate' /usr/local/lib/libmatio.so: undefined reference toH5T_C_S1_g'/usr/local/lib/libmatio.so: undefined reference to
H5Dopen2' /usr/local/lib/libmatio.so: undefined reference toH5Iget_type'/usr/local/lib/libmatio.so: undefined reference to
H5Dget_type' /usr/local/lib/libmatio.so: undefined reference toH5T_NATIVE_FLOAT_g'/usr/local/lib/libmatio.so: undefined reference to
H5Dwrite' /usr/local/lib/libmatio.so: undefined reference toH5T_NATIVE_HSIZE_g'/usr/local/lib/libmatio.so: undefined reference to
H5Screate_simple' /usr/local/lib/libmatio.so: undefined reference toH5Aread'/usr/local/lib/libmatio.so: undefined reference to
H5check_version' /usr/local/lib/libmatio.so: undefined reference toH5Iget_name'/usr/local/lib/libmatio.so: undefined reference to
H5Gcreate2' /usr/local/lib/libmatio.so: undefined reference toH5Tget_size'/usr/local/lib/libmatio.so: undefined reference to
H5Gget_objname_by_idx' /usr/local/lib/libmatio.so: undefined reference toH5Tvlen_create'/usr/local/lib/libmatio.so: undefined reference to
H5T_NATIVE_UCHAR_g' /usr/local/lib/libmatio.so: undefined reference toH5Eget_auto2'/usr/local/lib/libmatio.so: undefined reference to
H5Screate' /usr/local/lib/libmatio.so: undefined reference toH5Sselect_elements'/usr/local/lib/libmatio.so: undefined reference to
H5Gopen2' /usr/local/lib/libmatio.so: undefined reference toH5Gget_objtype_by_idx'/usr/local/lib/libmatio.so: undefined reference to
H5Dget_space' /usr/local/lib/libmatio.so: undefined reference toH5Dclose'/usr/local/lib/libmatio.so: undefined reference to
H5Eprint1' /usr/local/lib/libmatio.so: undefined reference toH5T_NATIVE_LONG_g'/usr/local/lib/libmatio.so: undefined reference to
H5Pset_userblock' /usr/local/lib/libmatio.so: undefined reference toH5Pclose'/usr/local/lib/libmatio.so: undefined reference to
H5T_NATIVE_UINT_g' /usr/local/lib/libmatio.so: undefined reference toH5Tinsert'/usr/local/lib/libmatio.so: undefined reference to
H5Rdereference' /usr/local/lib/libmatio.so: undefined reference toH5Sselect_hyperslab'/usr/local/lib/libmatio.so: undefined reference to
H5T_NATIVE_INT_g' /usr/local/lib/libmatio.so: undefined reference toH5Gclose'/usr/local/lib/libmatio.so: undefined reference to
H5Iinc_ref' /usr/local/lib/libmatio.so: undefined reference toH5Awrite'/usr/local/lib/libmatio.so: undefined reference to
H5open' /usr/local/lib/libmatio.so: undefined reference toH5Dread'/usr/local/lib/libmatio.so: undefined reference to
H5Tcreate' /usr/local/lib/libmatio.so: undefined reference toH5Gget_num_objs'/usr/local/lib/libmatio.so: undefined reference to
H5Tset_size' /usr/local/lib/libmatio.so: undefined reference toH5P_CLS_DATASET_CREATE_g'/usr/local/lib/libmatio.so: undefined reference to
H5T_NATIVE_USHORT_g' /usr/local/lib/libmatio.so: undefined reference toH5Dvlen_reclaim'/usr/local/lib/libmatio.so: undefined reference to
H5Tclose' /usr/local/lib/libmatio.so: undefined reference toH5Fopen'/usr/local/lib/libmatio.so: undefined reference to
H5Pset_chunk' /usr/local/lib/libmatio.so: undefined reference toH5Fclose'/usr/local/lib/libmatio.so: undefined reference to
H5T_NATIVE_DOUBLE_g' /usr/local/lib/libmatio.so: undefined reference toH5T_NATIVE_ULLONG_g'/usr/local/lib/libmatio.so: undefined reference to
H5Dcreate2' /usr/local/lib/libmatio.so: undefined reference toH5T_STD_REF_OBJ_g'It's failing to link to the hdf5 archive. Before all the "undefined reference" errors, there should be a linking step.
I believe this can be fixed by upating the " --with-hdf5=" path so that it points to the hdf5 dir that contains the directories "include/" and "lib/". So it would probably be "--with-hdf5=/home/shujon/hdf5-1.8.15-patch1-linux-centos7-x86_64-shared/".