vs2012 error c4996: 'fopen': This function or variable may be unsafe
来源:互联网 发布:淘宝网app 电脑版下载 编辑:程序博客网 时间:2024/06/05 20:26
转载地址:http://blog.csdn.net/zhangyuehuan/article/details/12012635
做数字图像处理作业,使用vs2012,遇到如下错误。
1>------ 已启动生成: 项目: 20130925, 配置: Debug Win32 ------
1> stdafx.cpp
1>d:\code\20130925\20130925\stdafx.cpp(18): 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> d:\vs2012\vc\include\stdio.h(218) : 参见“fopen”的声明
1> 20130925.cpp
1> 正在生成代码...
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
解决方案,项目 =》属性 =》c/c++ =》预处理器=》点击预处理器定义,编辑,加入_CRT_SECURE_NO_WARNINGS,即可。
0 0
- error C4996: 'fopen': This function or variable may be unsafe.
- error c4996: 'fopen': This function or variable may be unsafe
- error c4996: 'fopen': This function or variable may be unsafe
- error C4996: 'fopen': This function or variable may be unsafe.
- error C4996: 'fopen': This function or variable may be unsafe.
- vs2012 error c4996: This function or variable may be unsafe
- vs2012 error c4996: This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe解决方法
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- ROS 进阶学习笔记(13) - Combine Subscriber and Publisher in Python, ROS
- Eclipse下,html中thymeleaf自动提示的设定
- Shell变量
- MFC/VC 获取其他类指针
- JavaScript知识归纳(2)
- vs2012 error c4996: 'fopen': This function or variable may be unsafe
- Objective-C特性:Runtime
- 利用XShell上传、下载文件(使用sz与rz命令),超实用!
- js实现快捷键绑定按钮点击事件
- DBMS_REPAIR packag使用
- 每天进步一点点-tricks
- DDMS的使用、内存溢出的调试和模拟器的启动命令参数
- SlidingMenu菜单栏的使用
- RandomAccessFile 使用