MFC程序中,只要加上#include <vector>,程序就报错(在其它位置),去掉这行没问题?不明白哪里出错了?
2017-01-19 04:35
381 查看
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
相关文章推荐
- 关于VC的 Unicode 码的问题求教大家!
- 教你从头到尾利用DL学梵高作画:GTX 1070 cuda 8.0 tensorflow gpu版
- Struts核心配置文件的分类和读取顺序
- 关闭特殊进程问题
- vc如何使用热键跳出for循环体
- 网络安全的自动检测与预警
- 大神们,两个类要用到多个相同的局部变量该怎么办啊?
- Struts的运行流程分析
- 关于MFC菜单事件响应
- 菜鸟问题:类视图中见不到我添加的一个对话框类
- itoa为什么成了不赞成使用的函数了?
- MFC 自定义类中调用CMainFrame出错。
- VS2008基于对话框窗口,在OnInitDialog中为什么禁止不了Button
- 欢迎使用CSDN-markdown编辑器
- 阿里巴巴分布式数据库服务DRDS研发历程
- c++ 2.1 编译器何时创建默认构造函数
- exercise 41 学习面向对象
- 对话框中添加控件时,CMyDialog类中并没有CButton类的对象,却可以响应鼠标消息,为什么?
- windows库中,定义了类,头文件可以看到,相应的方法能不能看到阿
- VC++对话框的KeyDown问题