程序調試錯誤記錄

程序調試記錄:


(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()函數中的參數類型;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章