Yes, see Compiling HDF5 Applications for information on how to compile an application