简体   繁体   English

使用点云库(PCL)时Boost的问题

[英]Problems with Boost when using Point Cloud Library (PCL)

I work under Windows 10 64 bit and use Visual Studio 2017 (15.9.5). 我在Windows 10 64位下工作并使用Visual Studio 2017(15.9.5)。 Via vcpkg I got PCL with all dependencies installed (vcpkg install pcl:x64-windows). 通过vcpkg,我安装了所有依赖项的PCL(vcpkg install pcl:x64-windows)。 I have the versions: BOOST 1.68.0, PCL 1.9.1-1. 我有以下版本:BOOST 1.68.0,PCL 1.9.1-1。

For example, if I just add #include <pcl/io/pcd_io.h> , I get: 例如,如果我只添加#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"

Inserting #define BOOST_FILESYSTEM_SOURCE from E0145 Member may not be initialized- cmake - VS2017 looks like it's fixing the E0145 error. E0145成员插入#define BOOST_FILESYSTEM_SOURCE 可能未初始化-cmake-VS2017似乎正在修复E0145错误。 I still have the E2512 and E0434. 我仍然有E2512和E0434。

I searched Boost, PCL and other repositories for solutions but found nothing. 我在Boost,PCL和其他存储库中搜索解决方案,但一无所获。 Any help will be appreciated. 任何帮助将不胜感激。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM