您的位置:首页 > 运维架构

opencv3.0&win7专业版Severice Pack1&visual studio 2013错误解决办法

2015-08-25 18:46 411 查看
错误原因:c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 下的文件xmemory出错,因为该文件包好了xmemory0,错误原因就在这个xmemory0文件中。打开该文件如下所示






继续打开<xmemory0>文件,发现有这么一行,很明显该文件是VC下的文件但却包含了opencv3.0的头文件,这是错误的根本原因,将下图红框中的这句话注释掉。清理解决方案重新生成解决方案就OK了。



以下是可能的错误代码:

错误 1 error C2061: 语法错误: 标识符“_Wrap_alloc” c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 370 1 test

错误 2 error C2061: 语法错误: 标识符“_Wrap_alloc” c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 391 1 test

错误 3 error C2995: “_FwdIt std::_Uninit_copy(_InIt,_InIt,_FwdIt)”: 函数模板已经定义 c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 395 1 test

错误 4 error C2061: 语法错误: 标识符“_Wrap_alloc” c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 400 1 test

错误 5 error C2061: 语法错误: 标识符“_Wrap_alloc” c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 436 1 test

错误 6 error C2061: 语法错误: 标识符“_Wrap_alloc” c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 458 1 test

错误 7 error C2995: “_FwdIt std::_Uninit_move(_InIt,_InIt,_FwdIt)”: 函数模板已经定义 c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 462 1 test

错误 8 error C2061: 语法错误: 标识符“_Wrap_alloc” c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 468 1 test

错误 9 error C2061: 语法错误: 标识符“_Wrap_alloc” c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 583 1 test

错误 10 error C2061: 语法错误: 标识符“_Wrap_alloc” c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 609 1 test

错误 11 error C2995: “void std::_Uninit_fill_n(_FwdIt,_Diff,const _Tval *)”: 函数模板已经定义 c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 614 1 test

错误 12 error C2061: 语法错误: 标识符“_Wrap_alloc” c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 621 1 test

错误 13 error C2061: 语法错误: 标识符“_Wrap_alloc” c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 644 1 test

错误 14 error C2061: 语法错误: 标识符“_Wrap_alloc” c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 670 1 test

错误 15 error C2995: “void std::_Uninit_def_fill_n(_FwdIt,_Diff)”: 函数模板已经定义 c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 674 1 test

错误 16 error C2061: 语法错误: 标识符“_Wrap_alloc” c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory 680 1 test

错误 17 error C2061: 语法错误: 标识符“basic_string” c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 23 1 test

错误 18 error C2805: 二进制“operator >>”的参数太少 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 67 1 test

错误 19 error C2061: 语法错误: 标识符“basic_string” c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 74 1 test

错误 20 error C2061: 语法错误: 标识符“basic_string” c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 127 1 test

错误 21 error C2995: “std::basic_istream<_Elem,_Traits> &std::getline(std::basic_istream<_Elem,_Traits> &&)”: 函数模板已经定义 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 130 1 test

错误 22 error C2061: 语法错误: 标识符“basic_string” c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 137 1 test

错误 23 error C2805: 二进制“operator >>”的参数太少 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 140 1 test

错误 24 error C2061: 语法错误: 标识符“basic_string” c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 147 1 test

错误 25 error C2061: 语法错误: 标识符“basic_string” c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 158 1 test

错误 26 error C2995: “std::basic_istream<_Elem,_Traits> &std::getline(std::basic_istream<_Elem,_Traits> &)”: 函数模板已经定义 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 161 1 test

错误 27 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 168 1 test

错误 28 error C2143: 语法错误 : 缺少“,”(在“<”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 168 1 test

错误 29 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 226 1 test

错误 30 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 226 1 test

错误 31 error C2065: “_Str”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 229 1 test

错误 32 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 229 1 test

错误 33 error C2065: “_Base”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 232 1 test

错误 34 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 238 1 test

错误 35 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 239 1 test

错误 36 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 243 1 test

错误 37 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 243 1 test

错误 38 error C2065: “_Str”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 246 1 test

错误 39 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 246 1 test

错误 40 error C2065: “_Base”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 249 1 test

错误 41 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 255 1 test

错误 42 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 256 1 test

错误 43 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 260 1 test

错误 44 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 260 1 test

错误 45 error C2065: “_Str”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 263 1 test

错误 46 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 263 1 test

错误 47 error C2065: “_Base”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 266 1 test

错误 48 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 272 1 test

错误 49 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 273 1 test

错误 50 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 277 1 test

错误 51 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 277 1 test

错误 52 error C2065: “_Str”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 280 1 test

错误 53 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 280 1 test

错误 54 error C2065: “_Base”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 283 1 test

错误 55 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 289 1 test

错误 56 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 290 1 test

错误 57 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 294 1 test

错误 58 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 294 1 test

错误 59 error C2065: “_Str”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 297 1 test

错误 60 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 297 1 test

错误 61 error C2065: “_Base”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 300 1 test

错误 62 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 306 1 test

错误 63 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 307 1 test

错误 64 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 311 1 test

错误 65 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 311 1 test

错误 66 error C2065: “_Str”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 313 1 test

错误 67 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 313 1 test

错误 68 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 322 1 test

错误 69 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 323 1 test

错误 70 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 327 1 test

错误 71 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 327 1 test

错误 72 error C2065: “_Str”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 329 1 test

错误 73 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 329 1 test

错误 74 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 338 1 test

错误 75 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 339 1 test

错误 76 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 343 1 test

错误 77 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 343 1 test

错误 78 error C2065: “_Str”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 345 1 test

错误 79 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 345 1 test

错误 80 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 354 1 test

错误 81 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 355 1 test

错误 82 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 360 1 test

错误 83 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 360 1 test

错误 84 error C2084: 函数“int std::stoi(const int)”已有主体 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 362 1 test

错误 85 error C2065: “_Str”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 363 1 test

错误 86 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 363 1 test

错误 87 error C2065: “_Base”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 366 1 test

错误 88 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 372 1 test

错误 89 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 373 1 test

错误 90 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 377 1 test

错误 91 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 377 1 test

错误 92 error C2084: 函数“long std::stol(const int)”已有主体 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 379 1 test

错误 93 error C2065: “_Str”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 380 1 test

错误 94 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 380 1 test

错误 95 error C2065: “_Base”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 383 1 test

错误 96 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 389 1 test

错误 97 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 390 1 test

错误 98 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 394 1 test

错误 99 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 394 1 test

错误 100 error C2084: 函数“unsigned long std::stoul(const int)”已有主体 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 396 1 test

错误 101 error C2065: “_Str”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 397 1 test

错误 102 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 397 1 test

错误 103 error C2065: “_Base”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 400 1 test

错误 104 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 406 1 test

错误 105 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 407 1 test

错误 106 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 411 1 test

错误 107 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 411 1 test

错误 108 error C2084: 函数“_Longlong std::stoll(const int)”已有主体 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 413 1 test

错误 109 error C2065: “_Str”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 414 1 test

错误 110 error C2228: “.c_str”的左边必须有类/结构/联合 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 414 1 test

错误 111 error C2065: “_Base”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 417 1 test

错误 112 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 423 1 test

错误 113 error C2065: “_Idx”: 未声明的标识符 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 424 1 test

错误 114 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 428 1 test

错误 115 error C2143: 语法错误 : 缺少“,”(在“&”的前面) c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 428 1 test

错误 116 error C1003: 错误计数超过 100;正在停止编译 c:\program files (x86)\microsoft visual studio 12.0\vc\include\string 428 1 test
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: