
莫名其妙的Types 'Mat' and 'int' are not compatible错误,然而编译又能通过,调整了C++/C的syntax analysis规则之后依然存在,甚至取消所有的C++/C 的syntax analysis规则,这个红线依旧存在,编译依然能够通过,求解。
类似的错误还有:

Types 'Mat' and 'int' are not compatible;

Call to "match" is ambiguous
但是呢,同一份代码在kdevelop上就不会报错且正常编译运行,还以为Clion对Cmake支持也不错,顺便试试看,但是这无厘头报错且去不掉是闹哪样?
等有过类似经历的大神解答,拜谢!
