[英]Problems with Boost when using Point Cloud Library (PCL)
我在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>
, #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成员插入#define BOOST_FILESYSTEM_SOURCE
可能未初始化-cmake-VS2017似乎正在修复E0145错误。 我仍然有E2512和E0434。
我在Boost,PCL和其他存储库中搜索解决方案,但一无所获。 任何帮助将不胜感激。
在项目文件(使用项目属性属性表访问)的C / C ++部分的“常规”条目中,您具有其他包含目录字段,可在其中设置头文件的搜索路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.