Why does Visual Studio 2013 error on C4996?

后端 未结 6 1657
半阙折子戏
半阙折子戏 2020-12-01 04:35

In previous versions of Visual Studio using functions like _sleep or strncpy just outputs a warning. In the latest version, it\'s suddenly an error:

6条回答
  •  感动是毒
    2020-12-01 04:43

    Apparently new projects enable "SDK check" by default now, which treats these warnings as errors. To disable it, go to project properties -> Configuration Properties -> C/C++ -> General -> SDL checks -> No.

提交回复
热议问题