I work under Windows 10 64 bit and use Visual Studio 2017 (15.9.5). Via vcpkg I got PCL with all dependencies installed (vcpkg install pcl:x64-windows). I have the versions: BOOST 1.68.0, PCL 1.9.1-1.
For example, if I just add #include <pcl/io/pcd_io.h>
, I get:
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. I still have the E2512 and E0434.
I searched Boost, PCL and other repositories for solutions but found nothing. Any help will be appreciated.
在项目文件(使用项目属性属性表访问)的C / C ++部分的“常规”条目中,您具有其他包含目录字段,可在其中设置头文件的搜索路径。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.