error C4996: 'getenv': This function or variable may be unsafe.

error C4996: ‘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.

在该文件最上面添加:#define_CRT_SECURE_NO_WARNINGS

猜你喜欢

转载自blog.csdn.net/weixin_43081805/article/details/85341281