如何解决'未解决的外部符号'

时间:2014-08-06 09:17:08

标签: c++ opencv

我想运行项目Objectness,Main.cpp。我从网站下载的代码。我在大约5年后再次使用C ++。

我有错误'未解析的外部符号'。我阅读了相关问题“Unresolved external symbol in object files”。enter image description here

所以我发现这些外部符号已在Objectness.cpp中定义。

确切的错误是

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)

有谁能告诉我如何解决这个问题?提前谢谢!

0 个答案:

没有答案