How to fix fatal error: rapidxml_utils.hpp: No such file or directory

If you are seeing an error message like fatal error: rapidxml_utils.hpp: No such file or directory in a line like

include-rapidxml-utils-1.cpp
#include "rapidxml_utils.hpp"

or

include-rapidxml-utils-2.cpp
#include <rapidxml_utils.hpp>

you likely need to replace that line by

include-rapidxml-utils-fixed.cpp
#include <rapidxml/rapidxml_utils.hpp>

If this also doesn’t work, you might not have RapidXML installed. See How to install RapidXML on Ubuntu for details on how to do that on Ubuntu.


Check out similar posts by category: C/C++