What does “use -D_SCL_SECURE_NO_WARNINGS” mean?

后端 未结 4 639
青春惊慌失措
青春惊慌失措 2020-12-13 19:32

I\'ve got an error trying to compile my curve compression program, error no C4996, function call with parameters may be unsafe. It\'s telling me to use the above. The error

4条回答
  •  旧巷少年郎
    2020-12-13 19:47

    I'd like to also add that if you want to use

    #define _SCL_SECURE_NO_WARNINGS
    

    directly in your code, you have to place it before including headers. Or you can use

    #pragma warning(disable:4996)
    

提交回复
热议问题