C4996

最終更新日08 Mar 2018 07:11

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


_CRT_SECURE_NO_WARNINGSと書く

あるいは

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


ファイル

サポートサイト Wikidot.com