What does “use -D_SCL_SECURE_NO_WARNINGS” mean?

后端 未结 4 642
青春惊慌失措
青春惊慌失措 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条回答
  •  猫巷女王i
    2020-12-13 19:35

    -D is compiler flag or a macro like you were defined in your source code.

    -D_SCL_SECURE_NO_WARNINGS defines _SCL_SECURE_NO_WARNINGS macro.

    Please look at below link for more details on _SCL_SECURE_NO_WARNINGS macro. https://devblogs.microsoft.com/cppblog/why-am-i-getting-these-_scl_secure_no_warnings-messages/

提交回复
热议问题