遇到的编译错误及解决办法

1、opencv2flannmatrix.h(69): error C2059: 语法错误:“,”

在提示错误的matrix.h头文件中,修改一下,在free前加上_ ,即FLANN_DEPRECATED void _free() 。

2、opencv3.2.0uildincludeopencv2corecuda.hpp(106): error C2059: syntax error: 'constant'

在提示错误的cuda.hpp头文件中,修改一下,在free前加上_ ,即virtual void _free(GpuMat* mat) = 0。

原文地址:https://www.cnblogs.com/juluwangshier/p/12724326.html