ess-dmsc / h5cpp

C++ wrapper for the HDF5 C-library
https://ess-dmsc.github.io/h5cpp/
GNU Lesser General Public License v2.1
120 stars 19 forks source link

missing hdf5::hdf5_hl in node tests #595

Closed jkotan closed 2 years ago

jkotan commented 2 years ago

For older version of libhdf5 (1.10.0) one needs to add hdf5::hdf5_hl to the link target of node tests. Otherwise we get

/usr/bin/x86_64-linux-gnu-ld: CMakeFiles/node_test.dir/dataset_direct_chunk_test.cpp.o: undefined reference to symbol 'H5DOwrite_chunk@@HDF5_SERIAL_1.8.11'
//usr/lib/x86_64-linux-gnu/libhdf5_serial_hl.so.100: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status