错误类似:
1> LoadPicture.cpp
1>d:\opencv\opencv\build\x86\vc11\include\opencv2\flann\logger.h(66): error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdio.h(218) : 参见“fopen”的声明
解决办法如下:
找到Debug属性页C/C++下得预处理器
在预处理定义的
WIN32
_WINDOWS
_DEBUG下添加_CRT_SECURE_NO_WARNINGS
本文由VS软件圈(vssoft.net)发布,不代表VS软件圈立场,转载联系作者并注明出处:https://vssoft.net/vsazwt/VS2012anzhuangwenti/2020/0725/4941.html