【VS2013】错误处理error C4996: 'fopen': This function or variable may be unsafe

来源:互联网 发布:多媒体课件制作软件 编辑:程序博客网 时间:2024/05/18 00:22

1.error

错误1error 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.e:\anzhuang\opencv\build\include\opencv2\flann\logger.h661number_detection



2.solution:C++预处理器中添加_CRT_SECURE_NO_WARNINGS

(1)点击项目--属性



(2)选择c/c++--预处理器--预处理定义--编辑


(3)添加_CRT_SECURE_NO_WARNINGS



0 0