You should not need the /usr/lib/libhdf5_cpp.so part of that line.