我有一个要构建的项目(包括子项目)。我首先构建所有子项目,而我构建主项目却收到此错误: 我在x64机器上使用调试模式。 当我构建时出现这些错误(45):
msgStatusCCAN1.PowerMode = msgStatusCCAN1.PowerMode::ON
我怀疑与opencv_dnn库有关,因此我将其添加到项目的其他依赖项中(+路径)。
尽管如此,当我添加opencv_dnn343d.lib(用于Debug模式)时,不是消除错误,而是出现以下错误:
MainProject.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl cv::dnn::experimental_dnn_34_v7::Layer::getMemoryShapes(class std::vector<class std::vector<int,class std::allocator<int> >,class std::allocator<class std::vector<int,class std::allocator<int> > > > const &,int,class std::vector<class std::vector<int,class std::allocator<int> >,class std::allocator<class std::vector<int,class std::allocator<int> > > > &,class std::vector<class std::vector<int,class std::allocator<int> >,class std::allocator<class std::vector<int,class std::allocator<int> > > > &)const " (?getMemoryShapes@Layer@experimental_dnn_34_v7@dnn@cv@@UEBA_NAEBV?$vector@V?$vector@HV?$allocator@H@std@@@std@@V?$allocator@V?$vector@HV?$allocator@H@std@@@std@@@2@@std@@HAEAV56@1@Z)
1>ViewersLibCore_d.lib(OpenCVViewer.obj) : error LNK2001: unresolved external symbol "public: virtual bool __cdecl
cv::dnn::experimental_dnn_34_v7::Layer::getMemoryShapes(class std::vector<class std::vector<int,class std::allocator<int> >,class std::allocator<class std::vector<int,class std::allocator<int> > > > const &,int,class std::vector<class std::vector<int,class std::allocator<int> >,class std::allocator<class std::vector<int,class std::allocator<int> > > > &,class std::vector<class std::vector<int,class std::allocator<int> >,class std::allocator 15>LINK : fatal error LNK1215: metadata operation failed (8013119F) :
+++
.....
我想不出解决办法。有想法吗?