Add -lhdf5 to link line