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

0 0
原创粉丝点击