【问题标题】:Problems with Boost when using Point Cloud Library (PCL)使用点云库 (PCL) 时的 Boost 问题
【发布时间】:2019-06-10 04:21:07
【问题描述】:

我在 Windows 10 64 位下工作并使用 Visual Studio 2017 (15.9.5)。通过 vcpkg 我得到了安装了所有依赖项的 PCL(vcpkg install pcl:x64-windows)。我有以下版本:BOOST 1.68.0、PCL 1.9.1-1。

例如,如果我只添加#include <pcl/io/pcd_io.h>,我会得到:

E0145   member "boost::filesystem::path::separator" may not be initialized 

E0145   member "boost::filesystem::path::preferred_separator" may not be initialized 

E0145   member "boost::filesystem::path::dot" may not be initialized 

E2512   the argument to a feature-test macro must be a simple identifier 

E0434 A reference of type "boost::filesystem::path::iterator &" (not const-qualified) cannot be initialized with "boost::filesystem::path::iterator"

E0145 Member may not be initialized- cmake - VS2017 插入#define BOOST_FILESYSTEM_SOURCE 看起来正在修复E0145 错误。我还有 E2512 和 E0434。

我在 Boost、PCL 和其他存储库中搜索了解决方案,但一无所获。任何帮助将不胜感激。

【问题讨论】:

    标签: c++ boost point-cloud-library


    【解决方案1】:

    在项目文件(使用项目属性属性表访问)的 C/C++ 部分的“常规”条目中,您有 Additional Include Directories 字段,您可以在其中设置头文件的搜索路径。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-27
      • 1970-01-01
      • 2017-03-28
      • 1970-01-01
      相关资源
      最近更新 更多