gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 12:41:04 24 4
gpt4 key购买 nike

我在 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"

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

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

最佳答案

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

关于c++ - 使用点云库 (PCL) 时的 Boost 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54210992/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com