mnancy_ 2021-09-16 11:23 采纳率: 0%
浏览 72

报错-C4996 ‘fopen‘: This function or variable may be unsafe. Consider using fopen_s instead.

按照一些博客上的解决方法,在项目属性的C/C++的预处理器中添加_CRT_SECURE_NO_WARNINGS,之后报错错误 1 error LNK2019: 无法解析的外部符号 "public: __cdecl cv::Exception::Exception(int,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &,int)" (??0Exception@cv@@QEAA@HAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00H@Z),该符号在函数 "public: class cv::Vec<unsigned char,3> & __cdecl cv::Mat::at<class cv::Vec<unsigned char,3> >(int,int)" (??$at@V?$Vec@E$02@cv@@@Mat@cv@@QEAAAEAV?$Vec@E$02@1@HH@Z) 中被引用

请问应该如何解决?

  • 写回答

1条回答 默认 最新

  • CSDN专家-link 2021-09-16 11:26
    关注

    用fopen_s替代fopen
    你LINK错误跟fopen也没啥关系啊,应该是cv的库没包含吧

    评论

报告相同问题?

问题事件

  • 创建了问题 9月16日