MFC程序中,只要加上#include <vector>,程序就报错(在其它位置),去掉这行没问题?不明白哪里出错了?
来源:互联网 发布:java线程间的通信 编辑:程序博客网 时间:2024/05/22 12:33
OS:WIN7 64BIT
VS2010 SP1
我在stdafx.h中添加一行#include <vector>后,本来编译没有错误的程序就出错了。在别的.h或.cpp中添加include也同样报错。希望前辈们多多指点。
报错如下:
Warning 17 warning 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. e:\vsprojects\zipsettingdocs\zipsettingdocs\rwini.cpp 28 1 ZipSettingDocs
Warning 7 warning C4551: function call missing argument list e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 290 1 ZipSettingDocs
Error 8 error C3861: 'applog': identifier not found e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 290 1 ZipSettingDocs
Error 10 error C2228: left of '.writelog' must have class/struct/union e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 291 1 ZipSettingDocs
Error 12 error C2228: left of '.writelog' must have class/struct/union e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 320 1 ZipSettingDocs
Error 6 error C2146: syntax error : missing ';' before identifier 'applog' e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 290 1 ZipSettingDocs
Error 9 error C2065: 'applog' : undeclared identifier e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 291 1 ZipSettingDocs
Error 11 error C2065: 'applog' : undeclared identifier e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 320 1 ZipSettingDocs
----------------
详细代码在:https://code.google.com/p/xytestscript/source/browse/#svn%2Ftrunk%2FVS2010%2FZipSettingDocs%2FZipSettingDocs
VS2010 SP1
我在stdafx.h中添加一行#include <vector>后,本来编译没有错误的程序就出错了。在别的.h或.cpp中添加include也同样报错。希望前辈们多多指点。
报错如下:
Warning 17 warning 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. e:\vsprojects\zipsettingdocs\zipsettingdocs\rwini.cpp 28 1 ZipSettingDocs
Warning 7 warning C4551: function call missing argument list e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 290 1 ZipSettingDocs
Error 8 error C3861: 'applog': identifier not found e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 290 1 ZipSettingDocs
Error 10 error C2228: left of '.writelog' must have class/struct/union e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 291 1 ZipSettingDocs
Error 12 error C2228: left of '.writelog' must have class/struct/union e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 320 1 ZipSettingDocs
Error 6 error C2146: syntax error : missing ';' before identifier 'applog' e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 290 1 ZipSettingDocs
Error 9 error C2065: 'applog' : undeclared identifier e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 291 1 ZipSettingDocs
Error 11 error C2065: 'applog' : undeclared identifier e:\vsprojects\zipsettingdocs\zipsettingdocs\zipsettingdocsdlg.cpp 320 1 ZipSettingDocs
----------------
详细代码在:https://code.google.com/p/xytestscript/source/browse/#svn%2Ftrunk%2FVS2010%2FZipSettingDocs%2FZipSettingDocs
0 0
- MFC程序中,只要加上#include <vector>,程序就报错(在其它位置),去掉这行没问题?不明白哪里出错了?
- #include<iomanip>
- mapping中<discriminator/>的位置??
- vs2008对话框程序中,#include <st…
- vs2008对话框程序中,#include <st…
- 在程序中启动其它的程序
- 思维不可太死板: 在程序中加上某行后有编译问题, 去掉后就没有编译问题, 能否断定:一定是本行出了问题?
- javascript:</script>标签不允许出现在注释或字符串中,否则解释出错
- JSP <%@include%> <jsp:include/>
- #include <CSDN.h>
- #include<conio.h>
- vs2013创建exe程序在其它电脑运行出错解决方案
- 关于<Script>标签在html页面放置位置
- 关于<Script>标签在html页面放置位置
- 关于<Script>标签在html页面放置位置
- C程序中对时间的处理——time库函数详解<转>
- .Net Core中使用ref和Span&lt;T&gt;提高程序性能
- 在Java中执行其它程序
- vc如何使用热键跳出for循环体
- 关闭特殊进程问题
- Struts核心配置文件的分类和读取顺序
- 教你从头到尾利用DL学梵高作画:GTX 1070 cuda 8.0 tensorflow gpu版
- 关于VC的 Unicode 码的问题求教大家!
- MFC程序中,只要加上#include <vector>,程序就报错(在其它位置),去掉这行没问题?不明白哪里出错了?
- 菜鸟请教
- 会话跟踪技术
- jquery的九大选择器
- 表单空白字符校验
- Jquery的数据交互问题
- 文章标题
- CListCtrl中GetHotItem返回-1问题
- win8 程序发送组合虚拟键值,不能实现桌面切换