I want to run the project Objectness
, Main.cpp. The code I download from website. I just use C++ again after about 5 years.
I have errors 'unresolved external symbol'. I read a related problem 'Unresolved external symbol in object files'.
So I found these external symbols are already defined in Objectness.cpp
.
The exactly error are
1> Touching "x64\Debug\Objectness.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>Objectness.obj : error LNK2019: unresolved external symbol destroy_param referenced in function "public: static class cv::Mat __cdecl Objectness::trainSVM(class cv::Mat const &,class std::vector<int,class std::allocator<int> > const &,int,double,double,double)" (?trainSVM@Objectness@@SA?AVMat@cv@@AEBV23@AEBV?$vector@HV?$allocator@H@std@@@std@@HNNN@Z)
1>Objectness.obj : error LNK2019: unresolved external symbol free_and_destroy_model referenced in function "public: static class cv::Mat __cdecl Objectness::trainSVM(class cv::Mat const &,class std::vector<int,class std::allocator<int> > const &,int,double,double,double)" (?trainSVM@Objectness@@SA?AVMat@cv@@AEBV23@AEBV?$vector@HV?$allocator@H@std@@@std@@HNNN@Z)
1>Objectness.obj : error LNK2019: unresolved external symbol train referenced in function "public: static class cv::Mat __cdecl Objectness::trainSVM(class cv::Mat const &,class std::vector<int,class std::allocator<int> > const &,int,double,double,double)" (?trainSVM@Objectness@@SA?AVMat@cv@@AEBV23@AEBV?$vector@HV?$allocator@H@std@@@std@@HNNN@Z)
1>Objectness.obj : error LNK2019: unresolved external symbol check_parameter referenced in function "public: static class cv::Mat __cdecl Objectness::trainSVM(class cv::Mat const &,class std::vector<int,class std::allocator<int> > const &,int,double,double,double)" (?trainSVM@Objectness@@SA?AVMat@cv@@AEBV23@AEBV?$vector@HV?$allocator@H@std@@@std@@HNNN@Z)
1>Objectness.obj : error LNK2019: unresolved external symbol set_print_string_function referenced in function "public: static class cv::Mat __cdecl Objectness::trainSVM(class cv::Mat const &,class std::vector<int,class std::allocator<int> > const &,int,double,double,double)" (?trainSVM@Objectness@@SA?AVMat@cv@@AEBV23@AEBV?$vector@HV?$allocator@H@std@@@std@@HNNN@Z)
Could anyone tell me how to solve this problem? Thanks in advance!