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

1、opencv2\flann\matrix.h(69): error C2059: 语法错误:“,”

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

2、\opencv3.2.0\build\include\opencv2\core\cuda.hpp(106): error C2059: syntax error: 'constant'

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

posted @ 2020-04-18 09:56  巨鹿王十二  阅读(771)  评论(0编辑  收藏  举报