error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
2014-08-29 17:31
344 查看
这个问题困扰我一个上午,撞墙的心都有了,虽然知道是头文件包含有问题,但一直不知道什么原因,还望知道的朋友给与讲解!
#pragma once
#include "TransparentStatic.h"
这样的包含出错,其他路径都正确
结果我的解决办法是在包含头文件下面加了一个#include "stdafx.h",问题解决了……目前为止还不知道原因
#pragma once
#include "TransparentStatic.h"
#include "stdafx.h"
提醒各位朋友,在复制的时候,有的虽然类的文件是相同的,但也有可能类名不相同。所以一定要先检查类名是否正确
#pragma once
#include "TransparentStatic.h"
这样的包含出错,其他路径都正确
结果我的解决办法是在包含头文件下面加了一个#include "stdafx.h",问题解决了……目前为止还不知道原因
#pragma once
#include "TransparentStatic.h"
#include "stdafx.h"
提醒各位朋友,在复制的时候,有的虽然类的文件是相同的,但也有可能类名不相同。所以一定要先检查类名是否正确
相关文章推荐
- 类语句.NET下编译C++代码时出现"error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int"错误的解决方法。
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- MFC之头文件相互包含问题及解决方法 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- BaseClasses\ctlutil.h(278) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- 编译DirextShowSDK时,BaseClasses\ctlutil.h(278) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认int 错误的解决方法
- .NET下编译C++代码时出现"error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int"错误的解决方法。
- wxdebug.cpp(567) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- vs2008编译遇到error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
- error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int