i am new to visual studio fro C++, and i followed a visual tutorial to learn how to import opeCV librar into mircrosoft visual studio, after i followed the tutorial i tried to build the code and i received the below posted errors.
build Errors:
1>drawing.obj : error LNK2019: unresolved external symbol "public: __thiscall cv::_InputArray::_InputArray(class cv::Mat const &)" (??0_InputArray@cv@@QAE@ABVMat@1@@Z) referenced in function _main
1>drawing.obj : error LNK2019: unresolved external symbol "public: static class cv::MatExpr __cdecl cv::Mat::zeros(int,int,int)" (?zeros@Mat@cv@@SA?AVMatExpr@2@HHH@Z) referenced in function _main
1>drawing.obj : error LNK2019: unresolved external symbol "public: void __thiscall cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QAEXXZ) referenced in function "public: void __thiscall cv::Mat::release(void)" (?release@Mat@cv@@QAEXXZ)
1>drawing.obj : error LNK2019: unresolved external symbol "public: void __thiscall cv::Mat::copySize(class cv::Mat const &)" (?copySize@Mat@cv@@QAEXABV12@@Z) referenced in function "public: __thiscall cv::Mat::Mat(class cv::Mat const &)" (??0Mat@cv@@QAE@ABV01@@Z)
1>drawing.obj : error LNK2019: unresolved external symbol "void __cdecl cv::line(class cv::Mat &,class cv::Point_,class cv::Point_,class cv::Scalar_ const &,int,int,int)" (?line@cv@@YAXAAVMat@1@V?$Point_@H@1@1ABV?$Scalar_@N@1@HHH@Z) referenced in function _main
1>drawing.obj : error LNK2019: unresolved external symbol "void __cdecl cv::rectangle(class cv::Mat &,class cv::Point_,class cv::Point_,class cv::Scalar_ const &,int,int,int)" (?rectangle@cv@@YAXAAVMat@1@V?$Point_@H@1@1ABV?$Scalar_@N@1@HHH@Z) referenced in function _main
1>drawing.obj : error LNK2019: unresolved external symbol "void __cdecl cv::circle(class cv::Mat &,class cv::Point_,int,class cv::Scalar_ const &,int,int,int)" (?circle@cv@@YAXAAVMat@1@V?$Point_@H@1@HABV?$Scalar_@N@1@HHH@Z) referenced in function _main
1>drawing.obj : error LNK2019: unresolved external symbol "void __cdecl cv::ellipse(class cv::Mat &,class cv::Point_,class cv::Size_,double,double,double,class cv::Scalar_ const &,int,int,int)" (?ellipse@cv@@YAXAAVMat@1@V?$Point_@H@1@V?$Size_@H@1@NNNABV?$Scalar_@N@1@HHH@Z) referenced in function _main
1>drawing.obj : error LNK2019: unresolved external symbol "void __cdecl cv::fillPoly(class cv::Mat &,class cv::Point_ const * *,int const *,int,class cv::Scalar_ const &,int,int,class cv::Point_)" (?fillPoly@cv@@YAXAAVMat@1@PAPBV?$Point_@H@1@PBHHABV?$Scalar_@N@1@HHV31@@Z) referenced in function _main
1>drawing.obj : error LNK2019: unresolved external symbol "void __cdecl cv::polylines(class cv::Mat &,class cv::Point_ const * *,int const *,int,bool,class cv::Scalar_ const &,int,int,int)" (?polylines@cv@@YAXAAVMat@1@PAPBV?$Point_@H@1@PBHH_NABV?$Scalar_@N@1@HHH@Z) referenced in function _main
1>drawing.obj : error LNK2019: unresolved external symbol "void __cdecl cv::putText(class cv::Mat &,class std::basic_string,class std::allocator > const &,class cv::Point_,int,double,class cv::Scalar_,int,int,bool)" (?putText@cv@@YAXAAVMat@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$Point_@H@1@HNV?$Scalar_@N@1@HH_N@Z) referenced in function _main
1>drawing.obj : error LNK2019: unresolved external symbol "class cv::Size_ __cdecl cv::getTextSize(class std::basic_string,class std::allocator > const &,int,double,int,int *)" (?getTextSize@cv@@YA?AV?$Size_@H@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HNHPAH@Z) referenced in function _main
1>drawing.obj : error LNK2019: unresolved external symbol "int __cdecl cv::_interlockedExchangeAdd(int *,int)" (?_interlockedExchangeAdd@cv@@YAHPAHH@Z) referenced in function "public: __thiscall cv::Mat::Mat(class cv::Mat const &)" (??0Mat@cv@@QAE@ABV01@@Z)
1>drawing.obj : error LNK2019: unresolved external symbol "class cv::MatExpr __cdecl cv::operator-(class cv::Mat const &,class cv::Scalar_ const &)" (??Gcv@@YA?AVMatExpr@0@ABVMat@0@ABV?$Scalar_@N@0@@Z) referenced in function _main
1>drawing.obj : error LNK2019: unresolved external symbol "int __cdecl cv::waitKey(int)" (?waitKey@cv@@YAHH@Z) referenced in function _main
1>drawing.obj : error LNK2019: unresolved external symbol "void __cdecl cv::imshow(class std::basic_string,class std::allocator > const &,class cv::_InputArray const &)" (?imshow@cv@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV_InputArray@1@@Z) referenced in function _main
1>c:\users\abakri\documents\visual studio 2013\Projects\OpenCV_App_00\Debug\OpenCV_App_00.exe : fatal error LNK1120: 17 unresolved externals
please let me know how to solve it.
No comments:
Post a Comment