C++ boost/property_tree/ini_parser.hpp : No such file or directory

标签 c++ boost

我正在尝试做一个简单的程序:

#include <boost/property_tree/ini_parser.hpp>

class Config {
        boost::property_tree::ptree pt;
....

但是我在上面的标题中遇到了错误。

我使用的是 boost 版 1.38。不是这个版本吗?

最佳答案

正如您在 this page 上看到的那样, property tree 在 1.41.0 中加入了 boost

你必须更新你的 boost

关于C++ boost/property_tree/ini_parser.hpp : No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43583780/

相关文章:

c++ - 从模板派生类转换为模板基类

c++ - 使用 boost asio 原始套接字创建第 2 层/以太网套接字(在 C++ 中)

c++ - 为什么模板参数推导不起作用?

c++ - 如何创建要与 C++ 一起使用的离线数据库

c++ - 如何在Qt中创建线程网络服务器?

C++ struct 默认构造函数 mbed

c++ - VS 2017 不会隐式地将 const char* 转换为 char*

c++ - 如何访问Boost Graph中的边信息?

linux - ./configure for libtorrent 在 Linux 上的问题

c++ - 自纪元以来的时间使用boost进行串接