程序调试错误记录

来源:互联网 发布:端口号查询 编辑:程序博客网 时间:2024/05/16 19:07
程序调试记录:


(1)错误:extracSIFT.obj : error LNK2019: 无法解析的外部符号 "class boost::system::error_category const & 


__cdecl boost::system::generic_category(void)"
     解决方案:在boost的system库的D:\boost_1_53_0\boost\system\error_code.hpp源代码中添加 #define 


BOOST_ERROR_CODE_HEADER_ONLY
(2)错误:boost_round未定义 LINK2001 
   解决方案:使用#include <boost/math/special_functions/round.hpp> 替换#include <boost/math/tr1.hpp>
将boost::math::tr1::roundf()boost::math::tr1::round()函数都替换为boost::math::round()


(3)error LNK2019: 无法解析的外部符号 "public: virtual class cv::AlgorithmInfo * __cdecl cv::SIFT::info


(void)const " 
解决方案:添加opencv_nonfree245d.lib
(4)FastVideoGradientComputer.cpp(185): error C2780: “const _Ty &std::max(const _Ty &,const _Ty &,_Pr)”: 应


输入 3 个参数,却提供了 2 个


解决方案:使用static_cast<>()函数统一min()和max()函数中的参数类型;
原创粉丝点击