Boost logo

Boost Users :

From: Rui Pedro (Rui_pedro_000_at_[hidden])
Date: 2019-09-10 11:00:27

Hello guys,
I wanted to use boost to parse an INI file. in my code i used this includes:
#include "boost/property_tree/ptree.hpp"
#include "boost/property_tree/ini_parser.hpp"

when I compile my code "g++ test.cpp -o Test" with only this two includes I get an error from one of the included files:

In file included from test.cpp:15:0:
boost/property_tree/ptree.hpp:15:45: fatal error: boost/property_tree/ptree_fwd.hpp: File or directory not found
 #include <boost/property_tree/ptree_fwd.hpp>
compilation terminated.

This is an error in the ptree.hpp imported file. Maybe this has a quick fix but I'm kinda new to C++. I've checked and both files exist (boost/property_tree/ptree and boost/property_tree/ptree_fwd.hpp).


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at