opencv|将opencv3.0写成的代码在opencv2.4.9中运行出的错误error C4996: 'fopen':

将opencv3.0写成的代码在opencv2.4.9中运行出的错误error C4996: 'fopen':
错误 1 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.f:\opencv249\opencv\build\include\opencv2\flann\logger.h 66 1bmsuanfa


解决方法,项目 =》属性 =》c/c++=》预处理器=》点击预处理器定义,编辑,加入 _CRT_SECURE_NO_WARNINGS,就ok!

    推荐阅读