vs2019加载点云文件时,对点云数据处理,每次添加头文件**#include<windows.h>**,就会报一堆的错:
pcl出错:添加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) ());

类似的错误做出同样的修改即可。
大功告成!(对于初学者的我,改出一个错误,都觉得知足啊)

相关文章:

  • 2022-12-23
  • 2021-07-24
  • 2021-09-12
  • 2021-05-02
  • 2021-11-21
  • 2022-02-09
  • 2022-12-23
  • 2021-07-02
猜你喜欢
  • 2021-05-03
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2021-04-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案