error LNK2019问题,急~~~
在用OpenCV做卡尔曼滤波时用到三个随机数生成函数cvRand、cvRandSetRange、cvRandInit,但编译链接时出错:
error LNK2019: unresolved external symbol _cvRand referenced in function "public: __thiscall kalman::kalman(int,int,int,int)" (??0kalman@@QAE@HHHH@Z)
error LNK2019: unresolved external symbol _cvRandSetRange referenced in function "public: __thiscall kalman::kalman(int,int,int,int)" (??0kalman@@QAE@HHHH@Z)
error LNK2019: unresolved external symbol _cvRandInit referenced in function "public: __thiscall kalman::kalman(int,int,int,int)" (??0kalman@@QAE@HHHH@Z)
请问是怎么回事呢?若是缺少lib文件,是哪个哩?
[解决办法]
在include/opencv2/legacy/compat.hpp中定义的
[解决办法]
看看这几个函数申明在那个,根据头文件,来是那个库文件连接失败!