opencv2\flann\logger.h(66): error C4996: 'fopen' 解决方法

时间:2014-10-28 13:54:18   收藏:0   阅读:211

Visual Studio 使用opencvc出现以下错误:

\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 12.0\vc\include\stdio.h(211) : see declaration of ‘fopen‘


解决方法

在属性-->C++-->Preprocessor-->Preprocessor Definitions里加入 _CRT_SECURE_NO_WARNINGS即可

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!