getenv deprecated #1699
ozu95supein
started this conversation in
Debugging
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was following the book of Raytracing in one Week. Whenever I am at the point of trying to implement stb image to read in the earth texture, I keep getting the error C4996 on Visual Studio 2022 Windows. It says getenv is deprecated:
'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
I've tried to use the define _CRT_SECURE_NO_WARNINGS. to see if I could ignore it, but it still gives me the same error. How do I solve this?
Beta Was this translation helpful? Give feedback.
All reactions