为什么C++不知道TIMESTAMP_STRUCT类型
Why C++ not know TIMESTAMP_STRUCT type?
我使用Visual Studio 2005
当我编译时,我得到了这个错误:
错误1错误C2146:语法错误:缺少";"在标识符"mDropEndTime"之前
错误2错误C4430:缺少类型说明符-假定为int。注意:C++不支持默认的int
struct MB_SYN_DROPITEM_UPDATE : MSGBUF
{
long mCid; // Index
unsigned long mItemIdx; // idx
TIMESTAMP_STRUCT mDropEndTime; // This is error line
};
为什么C++不知道TIMESTAMP_STRUCT
?
TIMESTAMP_STRUCT
是sqlext.h 中定义的内容
您必须添加
#include <sqlext.h>
因为TIMESTAMP_STRUCT不是C++标准的一部分。
相关文章:
- Openssl 1.1.1d无效使用不完整的类型"struct dsa_st"
- 数据类型"struct seq<0, 1, 2>{}"含义是什么?
- 返回类型为struct的函数每次调用时都不返回任何内容
- "typedef"类型名称是否可以像"struct"定义那样声明指向结构的指针?
- 错误 C2011 'vars::strct': 'struct' 类型重定义
- C++ 在"struct std::iterator_traits"中没有名为"value_type"的类型<int>
- 错误:未使用不完整的类型'struct std::hash<>'无效
- boost :: Spirit属性分配:struct is_nullary:基本类型无法成为结构或类型
- 引用绑定到类型 'struct value_type' 的 null 指针
- 如何使一种类型的STL对只占用另一种类型的空间"empty struct"?
- 错误 13 错误 C2011:'ConnectionInfo':'struct'类型重定义
- 读取struct类型的循环中的变量
- 如何从采用 int 和 struct 类型的指针的函数中取消引用指针返回的地址?
- 构建失败:重新定义;不同的基本类型和类型名称首次使用"类"出现,现在使用"struct"
- 如何在类中使用变量类型 Struct
- C++传递"struct"类型的参数作为引用 (&) 或按值传递
- 为什么boost::fusion序列中的struct数组成员类型不能正确推导
- 使用Struct类型的Vector迭代器出错
- 不能将 "Struct*" 类型的值分配给类型 "Struct*" 的实体
- 为什么struct类型的数组不能正常工作