【发布时间】: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