error C2589: “(”:“::”右边的非法标记

来源:互联网 发布:it职业技术学校 编辑:程序博客网 时间:2024/06/09 22:34

错误 42 error C2589: “(”:“::”右边的非法标记 D:\pcl-1.7\pcl\correspondence.h 70


也许在你的代码里有#defined max

或者你在你的pcl文件头之前定义了windows.h


解决方案:

 在你的#include<windows.h>之前使用#define NOMINMAX

或者在#include pcl头文件之前使用#undef max

0 0