vs2019加载点云文件时,对点云数据处理,每次添加头文件**#include<windows.h>**,就会报一堆的错:
之前有参考其他人的解决方案,降低SDK版本,但是我的似乎作用不大,无奈只好点开错误尝试,点开错误:C2598,找到错误的文件,做出如下修改:
原来是:
template static std::string
generateHeader (const pcl::PointCloud &cloud,
const int nr_points = std::numeric_limits::max ());
修改为:
template static std::string
generateHeader (const pcl::PointCloud &cloud,
const int nr_points = (std::numeric_limits::max) ());
类似的错误做出同样的修改即可。
大功告成!(对于初学者的我,改出一个错误,都觉得知足啊)