I am trying to compile a C++ program using g++ which uses the H5Cpp.h
header file. g++ is producing a fatal error saying:
fatal error: H5Cpp.h: No such file or directory
I have already installed the library libhdf5-serial-dev
and whatever else comes with it. I am using ubuntu 15.10.
Checked that H5Cpp.h
is actually present in /usr/include/hdf5/serial/
as per the file list of package libhdf5-dev
.
/usr/include/serial
(whereas older releases might have placed it directly in/usr/include
): see File list of package libhdf5-dev in wily of architecture amd64/usr/include/hdf5/serial/
) from the file list that the header files are there in the proper directory./usr/include/serial
to the include path (e.g.-I /usr/include/serial
) or change the include directive in your source file from#include <H5Cpp.h>
to#include <serial/H5Cpp.h>
: if you want more explicit help you will need to provide details about your program and build process (compiler commands, Makefiles etc.)-I /usr/include/hdf5/serial/
helps (not-I /usr/include/serial/
). But now it gives some other errors, which I guess are not related to the question I have asked.. So I'm not sure whether to elaborate on it here or not. Also, its not any kind of complicated program, its actually an example from HDF5 Group. I am only doingg++ myfile.cpp -o myfile_e -I /usr/...
, no other options or anything. If you add that comment with change of the path as answer I will mark it.h5c++
helper script instead of runningg++
directly?