C4996

c4996.png

i have a error in my program.help plz my error: 1> C:\opencv\opencv\build\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) : see declaration of 'fopen'

c++ -> preprocessor -> preprocessor definitions

add _CRT_SECURE_NO_WARNINGS there

alternatively,

c++ -> general -> set "treat warnings as errors" to false

サポートサイト Wikidot.com