mfc中使用标准库stl出现xdebug、xlocale错误的解决方法
2011年07月06日
网易博客安全提醒:系统检测到您当前密码的安全性较低,为了您的账号安全,建议您适时修改密码 立即修改 | 关闭
事件起源在cadsurf源码1是由vc6.0编译,放置到VC2005环境下,编译时出现了N多问题如下:
错误 123 fatal error C1003: 错误计数超过 100;正在停止编译 c:\program files\microsoft visual studio 8\vc\include\xlocale 332
错误 31 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 177
错误 34 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 178
错误 35 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 178
错误 37 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 178
错误 54 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 230
错误 55 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 230
错误 57 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 232
错误 58 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 232
错误 81 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 294
错误 83 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 307
错误 89 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 313
错误 91 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 316
错误 93 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 317
错误 99 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 322
错误 101 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 84 error C3861: “_Init”: 找不到标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 307
错误 87 error C3861: “_Getgloballocale”: 找不到标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 309
错误 15 error C3409: 不允许空属性块 c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 82 error C2904: “locale”: 名称已经用于当前范围内的模板 c:\program files\microsoft visual studio 8\vc\include\xlocale 294
错误 27 error C2817: “operator delete”的返回类型必须为“void” c:\program files\microsoft visual studio 8\vc\include\xlocale 152
错误 19 error C2802: 静态成员“operator new”没有形参 c:\program files\microsoft visual studio 8\vc\include\xlocale 139
错误 79 error C2801: “std::operator ()”必须是非静态成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 273
错误 26 error C2628: “std::locale::facet”后面接“void”是非法的(是否忘记了“;”?) c:\program files\microsoft visual studio 8\vc\include\xlocale 150
错误 62 error C2614: “std::_Locimp”: 非法的成员初始化:“facet”不是基或成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 202
错误 66 error C2614: “std::_Locimp”: 非法的成员初始化:“facet”不是基或成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 207
错误 61 error C2614: “std::_Locimp”: 非法的成员初始化:“_Facetvec”不是基或成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 202
错误 65 error C2614: “std::_Locimp”: 非法的成员初始化:“_Facetvec”不是基或成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 207
错误 60 error C2614: “std::_Locimp”: 非法的成员初始化:“_Catmask”不是基或成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 202
错误 64 error C2614: “std::_Locimp”: 非法的成员初始化:“_Catmask”不是基或成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 207
错误 104 error C2612: 基/成员初始值设定项列表中的非法后缀“标识符” c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 30 error C2590: “facet”: 只有构造函数可以有基/成员初始值列表 c:\program files\microsoft visual studio 8\vc\include\xlocale 169
错误 23 error C2556: “void *(__cdecl *std::locale::facet::operator new(void))(size_t,const std::_DebugHeapTag_t &,char *,int)”: 重载函数与“void *(__cdecl *std::locale::facet::operator new(void))(size_t)”只是在返回类型上不同 c:\program files\microsoft visual studio 8\vc\include\xlocale 146
错误 85 error C2550: “std::locale”: 构造函数初始值设定项列表只能在构造函数定义中使用 c:\program files\microsoft visual studio 8\vc\include\xlocale 308
错误 96 error C2550: “std::locale”: 构造函数初始值设定项列表只能在构造函数定义中使用 c:\program files\microsoft visual studio 8\vc\include\xlocale 318
错误 105 error C2550: “std::locale”: 构造函数初始值设定项列表只能在构造函数定义中使用 c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 29 error C2523: “std::locale::~facet”: 析构函数 标记不匹配 c:\program files\microsoft visual studio 8\vc\include\xlocale 164
错误 46 error C2504: “facet”: 未定义基类 c:\program files\microsoft visual studio 8\vc\include\xlocale 186
错误 3 error C2491: “new”: 不允许 dllimport 数据 的定义 c:\program files\microsoft visual studio 8\vc\include\xdebug 32
错误 11 error C2491: “new”: 不允许 dllimport 数据 的定义 c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 77 error C2447: “{”: 缺少函数标题(是否是老式的形式表?) c:\program files\microsoft visual studio 8\vc\include\xlocale 249
错误 5 error C2440: “初始化”: 无法从“int”转换为“void *” c:\program files\microsoft visual studio 8\vc\include\xdebug 32
错误 13 error C2440: “初始化”: 无法从“int”转换为“void *” c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 2 error C2365: “operator new”: 重定义;以前的定义是“函数” c:\program files\microsoft visual studio 8\vc\include\xdebug 32
错误 10 error C2365: “operator new”: 重定义;以前的定义是“函数” c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 28 error C2333: “std::locale::operator delete”: 函数声明中有错误;跳过函数体 c:\program files\microsoft visual studio 8\vc\include\xlocale 152
错误 20 error C2333: “std::locale::facet::operator new”: 函数声明中有错误;跳过函数体 c:\program files\microsoft visual studio 8\vc\include\xlocale 139
错误 38 error C2327: “std::locale::_Refs”: 不是类型名称、静态或枚举数 c:\program files\microsoft visual studio 8\vc\include\xlocale 118
错误 40 error C2327: “std::locale::_Refs”: 不是类型名称、静态或枚举数 c:\program files\microsoft visual studio 8\vc\include\xlocale 119
错误 41 error C2327: “std::locale::_Refs”: 不是类型名称、静态或枚举数 c:\program files\microsoft visual studio 8\vc\include\xlocale 126
错误 42 error C2327: “std::locale::_Refs”: 不是类型名称、静态或枚举数 c:\program files\microsoft visual studio 8\vc\include\xlocale 126
错误 43 error C2327: “std::locale::_Refs”: 不是类型名称、静态或枚举数 c:\program files\microsoft visual studio 8\vc\include\xlocale 127
错误 44 error C2327: “std::locale::_Refs”: 不是类型名称、静态或枚举数 c:\program files\microsoft visual studio 8\vc\include\xlocale 128
错误 71 error C2275: “size_t”: 将此类型用作表达式非法 c:\program files\microsoft visual studio 8\vc\include\xlocale 247
错误 74 error C2275: “size_t”: 将此类型用作表达式非法 c:\program files\microsoft visual studio 8\vc\include\xlocale 247
错误 80 error C2270: “combine”: 非成员函数上不允许修饰符 c:\program files\microsoft visual studio 8\vc\include\xlocale 291
错误 78 error C2270: “()”: 非成员函数上不允许修饰符 c:\program files\microsoft visual studio 8\vc\include\xlocale 273
错误 25 error C2238: 意外的标记位于“;”之前 c:\program files\microsoft visual studio 8\vc\include\xlocale 147
错误 114 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 327
错误 121 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 329
错误 95 error C2228: “._Ptr”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 317
错误 107 error C2228: “._Ptr”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 110 error C2228: “._Ptr”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 327
错误 112 error C2228: “._Ptr”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 327
错误 117 error C2228: “._Ptr”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 328
错误 119 error C2228: “._Ptr”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 329
错误 113 error C2227: “->_Name”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 327
错误 120 error C2227: “->_Name”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 329
错误 86 error C2227: “->_Incref”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 309
错误 97 error C2227: “->_Incref”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 319
错误 122 error C2227: “->_Decref”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 332
错误 111 error C2227: “->_Catmask”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 327
错误 118 error C2227: “->_Catmask”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 328
错误 7 error C2226: 语法错误 : 意外的“size_t”类型 c:\program files\microsoft visual studio 8\vc\include\xdebug 32
错误 16 error C2226: 语法错误 : 意外的“size_t”类型 c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 56 error C2146: 语法错误 : 缺少“;”(在标识符“_Catmask”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 232
错误 72 error C2146: 语法错误 : 缺少“)”(在标识符“_Id”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 247
错误 76 error C2143: 语法错误 : 缺少“;”(在“{”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 249
错误 109 error C2143: 语法错误 : 缺少“;”(在“{”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 325
错误 14 error C2143: 语法错误 : 缺少“;”(在“[”的前面) c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 53 error C2143: 语法错误 : 缺少“;”(在“*”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 230
错误 6 error C2143: 语法错误 : 缺少“;”(在“(”的前面) c:\program files\microsoft visual studio 8\vc\include\xdebug 32
错误 33 error C2143: 语法错误 : 缺少“;”(在“&”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 178
错误 36 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 178
错误 92 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 316
错误 100 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 322
错误 18 error C2091: 函数返回函数 c:\program files\microsoft visual studio 8\vc\include\xlocale 139
错误 22 error C2091: 函数返回函数 c:\program files\microsoft visual studio 8\vc\include\xlocale 146
错误 102 error C2084: 函数“int std::locale(const int) throw()”已有主体 c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 4 error C2078: 初始值设定项太多 c:\program files\microsoft visual studio 8\vc\include\xdebug 32
错误 12 error C2078: 初始值设定项太多 c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 73 error C2078: 初始值设定项太多 c:\program files\microsoft visual studio 8\vc\include\xlocale 247
错误 59 error C2065: “none”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 201
错误 69 error C2065: “facet”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 247
错误 94 error C2065: “_Right”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 317
错误 39 error C2065: “_Refs”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 118
错误 67 error C2065: “_Pfacet”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 213
错误 116 error C2065: “_Other”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 328
错误 106 error C2065: “_Loc”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 68 error C2065: “_Id”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 213
错误 70 error C2065: “_Fac”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 247
错误 115 error C2065: “_Cat”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 328
错误 17 error C2061: 语法错误 : 标识符“THIS_FILE” c:\program files\microsoft visual studio 8\vc\include\xlocale 138
错误 21 error C2061: 语法错误 : 标识符“THIS_FILE” c:\program files\microsoft visual studio 8\vc\include\xlocale 144
错误 47 error C2061: 语法错误 : 标识符“facet” c:\program files\microsoft visual studio 8\vc\include\xlocale 196
错误 48 error C2061: 语法错误 : 标识符“facet” c:\program files\microsoft visual studio 8\vc\include\xlocale 211
错误 49 error C2061: 语法错误 : 标识符“category” c:\program files\microsoft visual studio 8\vc\include\xlocale 217
错误 50 error C2061: 语法错误 : 标识符“category” c:\program files\microsoft visual studio 8\vc\include\xlocale 220
错误 51 error C2061: 语法错误 : 标识符“category” c:\program files\microsoft visual studio 8\vc\include\xlocale 224
错误 52 error C2061: 语法错误 : 标识符“category” c:\program files\microsoft visual studio 8\vc\include\xlocale 228
错误 103 error C2061: 语法错误 : 标识符“_DebugHeapTag_func” c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 24 error C2059: 语法错误 : “return” c:\program files\microsoft visual studio 8\vc\include\xlocale 147
错误 8 error C2059: 语法错误 : “)” c:\program files\microsoft visual studio 8\vc\include\xdebug 33
错误 45 error C2059: 语法错误 : “)” c:\program files\microsoft visual studio 8\vc\include\xlocale 158
错误 75 error C2059: 语法错误 : “)” c:\program files\microsoft visual studio 8\vc\include\xlocale 248
错误 108 error C2059: 语法错误 : “)” c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 63 error C2039: “_Catmask”: 不是“std::_Locimp”的成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 206
错误 124 error BK1506 : : No such file or directory BSCMAKE
现将搜集到得解决方法贴上:
VC6.0中
先申明
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
然后包含头文件
这样是不会出错的
但是在VC2005中
先包含头文件
然后申明
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
所以解决方法一:
去掉 DEBUG_NEW的那些申明
解决方法二:
将包含头文件放置到DEBUG_NEW的申明前
2011年07月06日
网易博客安全提醒:系统检测到您当前密码的安全性较低,为了您的账号安全,建议您适时修改密码 立即修改 | 关闭
事件起源在cadsurf源码1是由vc6.0编译,放置到VC2005环境下,编译时出现了N多问题如下:
错误 123 fatal error C1003: 错误计数超过 100;正在停止编译 c:\program files\microsoft visual studio 8\vc\include\xlocale 332
错误 31 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 177
错误 34 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 178
错误 35 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 178
错误 37 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 178
错误 54 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 230
错误 55 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 230
错误 57 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 232
错误 58 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 232
错误 81 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 294
错误 83 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 307
错误 89 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 313
错误 91 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 316
错误 93 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 317
错误 99 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 322
错误 101 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 84 error C3861: “_Init”: 找不到标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 307
错误 87 error C3861: “_Getgloballocale”: 找不到标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 309
错误 15 error C3409: 不允许空属性块 c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 82 error C2904: “locale”: 名称已经用于当前范围内的模板 c:\program files\microsoft visual studio 8\vc\include\xlocale 294
错误 27 error C2817: “operator delete”的返回类型必须为“void” c:\program files\microsoft visual studio 8\vc\include\xlocale 152
错误 19 error C2802: 静态成员“operator new”没有形参 c:\program files\microsoft visual studio 8\vc\include\xlocale 139
错误 79 error C2801: “std::operator ()”必须是非静态成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 273
错误 26 error C2628: “std::locale::facet”后面接“void”是非法的(是否忘记了“;”?) c:\program files\microsoft visual studio 8\vc\include\xlocale 150
错误 62 error C2614: “std::_Locimp”: 非法的成员初始化:“facet”不是基或成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 202
错误 66 error C2614: “std::_Locimp”: 非法的成员初始化:“facet”不是基或成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 207
错误 61 error C2614: “std::_Locimp”: 非法的成员初始化:“_Facetvec”不是基或成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 202
错误 65 error C2614: “std::_Locimp”: 非法的成员初始化:“_Facetvec”不是基或成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 207
错误 60 error C2614: “std::_Locimp”: 非法的成员初始化:“_Catmask”不是基或成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 202
错误 64 error C2614: “std::_Locimp”: 非法的成员初始化:“_Catmask”不是基或成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 207
错误 104 error C2612: 基/成员初始值设定项列表中的非法后缀“标识符” c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 30 error C2590: “facet”: 只有构造函数可以有基/成员初始值列表 c:\program files\microsoft visual studio 8\vc\include\xlocale 169
错误 23 error C2556: “void *(__cdecl *std::locale::facet::operator new(void))(size_t,const std::_DebugHeapTag_t &,char *,int)”: 重载函数与“void *(__cdecl *std::locale::facet::operator new(void))(size_t)”只是在返回类型上不同 c:\program files\microsoft visual studio 8\vc\include\xlocale 146
错误 85 error C2550: “std::locale”: 构造函数初始值设定项列表只能在构造函数定义中使用 c:\program files\microsoft visual studio 8\vc\include\xlocale 308
错误 96 error C2550: “std::locale”: 构造函数初始值设定项列表只能在构造函数定义中使用 c:\program files\microsoft visual studio 8\vc\include\xlocale 318
错误 105 error C2550: “std::locale”: 构造函数初始值设定项列表只能在构造函数定义中使用 c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 29 error C2523: “std::locale::~facet”: 析构函数 标记不匹配 c:\program files\microsoft visual studio 8\vc\include\xlocale 164
错误 46 error C2504: “facet”: 未定义基类 c:\program files\microsoft visual studio 8\vc\include\xlocale 186
错误 3 error C2491: “new”: 不允许 dllimport 数据 的定义 c:\program files\microsoft visual studio 8\vc\include\xdebug 32
错误 11 error C2491: “new”: 不允许 dllimport 数据 的定义 c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 77 error C2447: “{”: 缺少函数标题(是否是老式的形式表?) c:\program files\microsoft visual studio 8\vc\include\xlocale 249
错误 5 error C2440: “初始化”: 无法从“int”转换为“void *” c:\program files\microsoft visual studio 8\vc\include\xdebug 32
错误 13 error C2440: “初始化”: 无法从“int”转换为“void *” c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 2 error C2365: “operator new”: 重定义;以前的定义是“函数” c:\program files\microsoft visual studio 8\vc\include\xdebug 32
错误 10 error C2365: “operator new”: 重定义;以前的定义是“函数” c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 28 error C2333: “std::locale::operator delete”: 函数声明中有错误;跳过函数体 c:\program files\microsoft visual studio 8\vc\include\xlocale 152
错误 20 error C2333: “std::locale::facet::operator new”: 函数声明中有错误;跳过函数体 c:\program files\microsoft visual studio 8\vc\include\xlocale 139
错误 38 error C2327: “std::locale::_Refs”: 不是类型名称、静态或枚举数 c:\program files\microsoft visual studio 8\vc\include\xlocale 118
错误 40 error C2327: “std::locale::_Refs”: 不是类型名称、静态或枚举数 c:\program files\microsoft visual studio 8\vc\include\xlocale 119
错误 41 error C2327: “std::locale::_Refs”: 不是类型名称、静态或枚举数 c:\program files\microsoft visual studio 8\vc\include\xlocale 126
错误 42 error C2327: “std::locale::_Refs”: 不是类型名称、静态或枚举数 c:\program files\microsoft visual studio 8\vc\include\xlocale 126
错误 43 error C2327: “std::locale::_Refs”: 不是类型名称、静态或枚举数 c:\program files\microsoft visual studio 8\vc\include\xlocale 127
错误 44 error C2327: “std::locale::_Refs”: 不是类型名称、静态或枚举数 c:\program files\microsoft visual studio 8\vc\include\xlocale 128
错误 71 error C2275: “size_t”: 将此类型用作表达式非法 c:\program files\microsoft visual studio 8\vc\include\xlocale 247
错误 74 error C2275: “size_t”: 将此类型用作表达式非法 c:\program files\microsoft visual studio 8\vc\include\xlocale 247
错误 80 error C2270: “combine”: 非成员函数上不允许修饰符 c:\program files\microsoft visual studio 8\vc\include\xlocale 291
错误 78 error C2270: “()”: 非成员函数上不允许修饰符 c:\program files\microsoft visual studio 8\vc\include\xlocale 273
错误 25 error C2238: 意外的标记位于“;”之前 c:\program files\microsoft visual studio 8\vc\include\xlocale 147
错误 114 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 327
错误 121 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 329
错误 95 error C2228: “._Ptr”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 317
错误 107 error C2228: “._Ptr”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 110 error C2228: “._Ptr”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 327
错误 112 error C2228: “._Ptr”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 327
错误 117 error C2228: “._Ptr”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 328
错误 119 error C2228: “._Ptr”的左边必须有类/结构/联合 c:\program files\microsoft visual studio 8\vc\include\xlocale 329
错误 113 error C2227: “->_Name”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 327
错误 120 error C2227: “->_Name”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 329
错误 86 error C2227: “->_Incref”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 309
错误 97 error C2227: “->_Incref”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 319
错误 122 error C2227: “->_Decref”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 332
错误 111 error C2227: “->_Catmask”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 327
错误 118 error C2227: “->_Catmask”的左边必须指向类/结构/联合/泛型类型 c:\program files\microsoft visual studio 8\vc\include\xlocale 328
错误 7 error C2226: 语法错误 : 意外的“size_t”类型 c:\program files\microsoft visual studio 8\vc\include\xdebug 32
错误 16 error C2226: 语法错误 : 意外的“size_t”类型 c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 56 error C2146: 语法错误 : 缺少“;”(在标识符“_Catmask”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 232
错误 72 error C2146: 语法错误 : 缺少“)”(在标识符“_Id”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 247
错误 76 error C2143: 语法错误 : 缺少“;”(在“{”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 249
错误 109 error C2143: 语法错误 : 缺少“;”(在“{”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 325
错误 14 error C2143: 语法错误 : 缺少“;”(在“[”的前面) c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 53 error C2143: 语法错误 : 缺少“;”(在“*”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 230
错误 6 error C2143: 语法错误 : 缺少“;”(在“(”的前面) c:\program files\microsoft visual studio 8\vc\include\xdebug 32
错误 33 error C2143: 语法错误 : 缺少“;”(在“&”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 178
错误 36 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 178
错误 92 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 316
错误 100 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files\microsoft visual studio 8\vc\include\xlocale 322
错误 18 error C2091: 函数返回函数 c:\program files\microsoft visual studio 8\vc\include\xlocale 139
错误 22 error C2091: 函数返回函数 c:\program files\microsoft visual studio 8\vc\include\xlocale 146
错误 102 error C2084: 函数“int std::locale(const int) throw()”已有主体 c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 4 error C2078: 初始值设定项太多 c:\program files\microsoft visual studio 8\vc\include\xdebug 32
错误 12 error C2078: 初始值设定项太多 c:\program files\microsoft visual studio 8\vc\include\xdebug 36
错误 73 error C2078: 初始值设定项太多 c:\program files\microsoft visual studio 8\vc\include\xlocale 247
错误 59 error C2065: “none”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 201
错误 69 error C2065: “facet”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 247
错误 94 error C2065: “_Right”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 317
错误 39 error C2065: “_Refs”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 118
错误 67 error C2065: “_Pfacet”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 213
错误 116 error C2065: “_Other”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 328
错误 106 error C2065: “_Loc”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 68 error C2065: “_Id”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 213
错误 70 error C2065: “_Fac”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 247
错误 115 error C2065: “_Cat”: 未声明的标识符 c:\program files\microsoft visual studio 8\vc\include\xlocale 328
错误 17 error C2061: 语法错误 : 标识符“THIS_FILE” c:\program files\microsoft visual studio 8\vc\include\xlocale 138
错误 21 error C2061: 语法错误 : 标识符“THIS_FILE” c:\program files\microsoft visual studio 8\vc\include\xlocale 144
错误 47 error C2061: 语法错误 : 标识符“facet” c:\program files\microsoft visual studio 8\vc\include\xlocale 196
错误 48 error C2061: 语法错误 : 标识符“facet” c:\program files\microsoft visual studio 8\vc\include\xlocale 211
错误 49 error C2061: 语法错误 : 标识符“category” c:\program files\microsoft visual studio 8\vc\include\xlocale 217
错误 50 error C2061: 语法错误 : 标识符“category” c:\program files\microsoft visual studio 8\vc\include\xlocale 220
错误 51 error C2061: 语法错误 : 标识符“category” c:\program files\microsoft visual studio 8\vc\include\xlocale 224
错误 52 error C2061: 语法错误 : 标识符“category” c:\program files\microsoft visual studio 8\vc\include\xlocale 228
错误 103 error C2061: 语法错误 : 标识符“_DebugHeapTag_func” c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 24 error C2059: 语法错误 : “return” c:\program files\microsoft visual studio 8\vc\include\xlocale 147
错误 8 error C2059: 语法错误 : “)” c:\program files\microsoft visual studio 8\vc\include\xdebug 33
错误 45 error C2059: 语法错误 : “)” c:\program files\microsoft visual studio 8\vc\include\xlocale 158
错误 75 error C2059: 语法错误 : “)” c:\program files\microsoft visual studio 8\vc\include\xlocale 248
错误 108 error C2059: 语法错误 : “)” c:\program files\microsoft visual studio 8\vc\include\xlocale 324
错误 63 error C2039: “_Catmask”: 不是“std::_Locimp”的成员 c:\program files\microsoft visual studio 8\vc\include\xlocale 206
错误 124 error BK1506 : : No such file or directory BSCMAKE
现将搜集到得解决方法贴上:
VC6.0中
先申明
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
然后包含头文件
这样是不会出错的
但是在VC2005中
先包含头文件
然后申明
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
所以解决方法一:
去掉 DEBUG_NEW的那些申明
解决方法二:
将包含头文件放置到DEBUG_NEW的申明前