error C2059: 语法错误:“::” error C2589: “(”:“::”右边的非法标记
2016-03-22 14:23
555 查看
最近用pcl 1.7来编写程序,在程序利用源码中的例子来进行编译的时候,发现编译错误:
错误的代码如下:
感觉和我上次遇到的flann原因是一样的,google了一下,发现是系统函数与pcl中的max函数冲突导致的,修改如下,添加括号
修改后代码:
错误 31 error C2059: 语法错误:“::” D:\kinect1\StanfordPCL-master\include\pcl-1.7\pcl\io\pcd_io.h 332 错误 41 error C2612: 基/成员初始值设定项列表中的非法后缀“::” D:\kinect1\StanfordPCL-master\include\pcl-1.7\pcl\correspondence.h 70 错误 42 error C2589: “(”:“::”右边的非法标记 D:\kinect1\StanfordPCL-master\include\pcl-1.7\pcl\correspondence.h 70
错误的代码如下:
template <typename PointT> static std::string generateHeader (const pcl::PointCloud<PointT> &cloud, const int nr_points = std::numeric_limits<int>::max ());
感觉和我上次遇到的flann原因是一样的,google了一下,发现是系统函数与pcl中的max函数冲突导致的,修改如下,添加括号
修改后代码:
template <typename PointT> static std::string generateHeader (const pcl::PointCloud<PointT> &cloud, const int nr_points = (std::numeric_limits<int>::max)());
相关文章推荐
- ApplePay高调入华,教你在app里上线ApplePay
- 基于 OAuth 安全协议的 Java 应用编程1
- 二级缓存
- Excel 解析 (大文件读取)
- Java之美[从菜鸟到高手演练]之JDK动态代理的实现及原理
- 深入理解git,从研究git目录开始
- word2vec代码注释
- 调查数据的加权处理技术
- hihoCoder 1037 数字三角形
- Spring学习笔记(十九):关于tomcat运行一直出错的问题
- 常见并发同步案例
- iOS应用跳转到设置界面设置wifi
- Spring动态创建bean切换数据源
- 二分图最大匹配算法-匈牙利算法(Hungary)模板
- JAVA中重载与多态
- SAE 上使用PHP搭建微信公众号后台
- qt 拖动 讲解 QDrag
- 应用服务器集群部署
- 用户管理-------userManage
- 最近用到js筛选一个url的域名部分(草创)