首页 > 学院 > 开发设计 > 正文

VS2015 debug_error C4996: 'fopen'问题_调用文本文档问题

2019-11-08 01:05:05
字体:
来源:转载
供稿:网友

error C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable dePRecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

1>f:/program files (x86)/microsoft visual studio 12.0/vc/include/stdio.h(211) : 参见“fopen”的声明

快速解决方法如下

右键工程,选择属性——C/C++——预处理器——

在“预处理器定义”中添加 “_CRT_SECURE_NO_WARNINGS”


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表