1>------ 已启动生成: 项目: ManualSet, 配置: Debug Win32 ------
1>正在编译...
1>stdafx.cpp
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(3074) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(3074) : warning C4183: “CDialog”: 缺少返回类型;假定为返回“int”的成员函数
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(3084) : error C2071: “<unnamed-tag>::CDialog”: 非法的存储类
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(3084) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(3085) : error C2071: “<unnamed-tag>::CDialog”: 非法的存储类
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(3085) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(3121) : error C2523: “<unnamed-tag>::~CDialog”: 析构函数 标记不匹配
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(3167) : warning C4094: 无标记的“class”未声明符号
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxdlgs.h(108) : error C2504: “CDialog”: 未定义基类
1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxdlgs.h(623) : error C2504: “CDialog”: 未定义基类
1>生成日志保存在“file://g:\src\ManualSet\ManualSet\Debug\BuildLog.htm”
1>ManualSet - 8 个错误,2 个警告
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========

解决方案 »

  1.   

    很有可能是你的头文件有“互包”了,即头文件A.H包含了B.H,而B.H包含了A.H,检查一下
      

  2.   

    不知道楼主这个问题已经解决了么?本人最近也出现了这种情况,不知道我出现的情况是不是和你的一样,我把我的解决方法跟大家分享下,希望下次有人出现和我一样的错误的时候能少走弯路。不过这种情况出现的该概率是很小的,主要是我将afxwin.h中的CDialog类的定义中的这句class CDialog : public CWnd{},被我误删成了class  : public CWnd{},丢了CDialog这个了,所以出现了和楼主一样的情况了。希望对大家能有帮助。