使用map时提示error C2143: syntax error : missing '>' before ';'

本文解决了在VC6.0环境中使用map嵌套vector时出现的特定语法错误C2143,并提供了正确的代码示例。该问题在VS2005中未出现,通过在vector声明后添加空格得以解决。

今天在vc6.0中使用了map,在map中嵌套了vector,错误报错了error C2143: syntax error : missing '>' before ';'错误,但是同样的代码,在vs2005中却不会报错,浪费了我很长时间,解决方案如下,希望对其他遇到同样的朋友有所帮助

编译环境VC6.0

程序如下:

#include<vector>
#include<map>
#include<iostream>

int main()
{
     std::map<int,std::vector<int>>;
     return 0;
}

 

提示下面错误:

--------------------Configuration: test - Win32 Debug--------------------
Compiling...
main.cpp
D:/Program Files/Microsoft Visual Studio/MyProjects/test/main.cpp(7) : error C2143: syntax error : missing '>' before ';'
Error executing cl.exe.

main.obj - 1 error(s), 0 warning(s)

 

 

错误解决:

std::map<int,std::vector<int>>;  修改为std::map<int,std::vector<int> >;   

注意:vector<int>后面加了一个空格

 

 

 

 

在vs2005中不会报错,可能是由于vc6.0和vs2005的编译器不一样的缘故吧。

 

 

 

'void __thiscall CMap1View::OnRGBSplit(void)' : overloaded function differs only by return type from 'int __thiscall CMap1View::OnRGBSplit(void)' d:\vc6.0\microsoft visual studio\myprojects\map1\map1view.h(22) : see declaration of 'OnRGBSplit' D:\VC6.0\Microsoft Visual Studio\MyProjects\map1\map1View.cpp(110) : error C2371: 'OnRGBSplit' : redefinition; different basic types d:\vc6.0\microsoft visual studio\myprojects\map1\map1view.h(22) : see declaration of 'OnRGBSplit' D:\VC6.0\Microsoft Visual Studio\MyProjects\map1\map1View.cpp(111) : error C2065: 'm_image' : undeclared identifier D:\VC6.0\Microsoft Visual Studio\MyProjects\map1\map1View.cpp(111) : error C2228: left of '.empty' must have class/struct/union type D:\VC6.0\Microsoft Visual Studio\MyProjects\map1\map1View.cpp(112) : error C2143: syntax error : missing ')' before '{' D:\VC6.0\Microsoft Visual Studio\MyProjects\map1\map1View.cpp(118) : error C2065: 'vector' : undeclared identifier D:\VC6.0\Microsoft Visual Studio\MyProjects\map1\map1View.cpp(118) : error C2065: 'Mat' : undeclared identifier D:\VC6.0\Microsoft Visual Studio\MyProjects\map1\map1View.cpp(118) : error C2065: 'channels' : undeclared identifier D:\VC6.0\Microsoft Visual Studio\MyProjects\map1\map1View.cpp(118) : warning C4804: '>' : unsafe use of type 'bool' in operation D:\VC6.0\Microsoft Visual Studio\MyProjects\map1\map1View.cpp(118) : warning C4552: '>' : operator has no effect; expected operator with side-effect D:\VC6.0\Microsoft Visual Studio\MyProjects\map1\map1View.cpp(119) : error C2065: 'split' : undeclared identifier D:\VC6.0\Microsoft Visual Studio\MyProjects\map1\map1View.cpp(121) : error C2001: newline in constant D:\VC6.0\Microsoft Visual Studio\MyProjects\map1\map1View.cpp(121) : fatal error C1057: unexpected end of file in macro expansion
最新发布
10-15
该如何消失VS2022的如下错误提示: Severity Code Description Project File Line Suppression State Details Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 10 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 8 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 9 Error C2143 syntax error: missing ';' before '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 12 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 11 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 15 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 16 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 17 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 18 Error C2143 syntax error: missing ';' before '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 20 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 19 Error C2059 syntax error: '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 20 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 23 Error C2086 'int None': redefinition Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 23 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 24 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 25 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 26 Error C2143 syntax error: missing ';' before '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 28 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 27 Error C2059 syntax error: '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 28 Error C2059 syntax error: 'public' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 31 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 33 Error C2146 syntax error: missing ';' before identifier 'Show' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 33 Error C2059 syntax error: 'const' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 33 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 34 Error C2086 'int DialogResult': redefinition Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 34 Error C2146 syntax error: missing ';' before identifier 'Show' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 34 Error C2059 syntax error: 'const' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 34 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 35 Error C2086 'int DialogResult': redefinition Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 35 Error C2146 syntax error: missing ';' before identifier 'Show' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 35 Error C2059 syntax error: 'const' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 35 Error C2059 syntax error: 'private' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 37 Error C2065 'MessageBoxButtons': undeclared identifier Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 39 Error C2146 syntax error: missing ')' before identifier 'buttons' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 39 Error C2065 'MessageBoxIcon': undeclared identifier Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 40 Error C2146 syntax error: missing ')' before identifier 'icon' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 40 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 41 Error C2086 'int DialogResult': redefinition Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 41 Error C2146 syntax error: missing ';' before identifier 'ConvertResult' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 41 Error C2062 type 'int' unexpected Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 41 Error C2059 syntax error: '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 42 Error C2143 syntax error: missing ';' before '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 42 Error C2059 syntax error: '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 44 Error C2143 syntax error: missing ';' before '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 44 Error C2143 syntax error: missing ';' before '{' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 3 Error C2447 '{': missing function header (old-style formal list?) Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 3 Error C2059 syntax error: 'return' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 10 Error C2653 'MessageBoxButtons': is not a class or namespace name Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 10 Error C2653 'MessageBoxIcon': is not a class or namespace name Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 10 Error C2059 syntax error: '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 11 Error C2143 syntax error: missing ';' before '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 11 Error C2653 'MessageBoxW': is not a class or namespace name Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 14 Error C2143 syntax error: missing ';' before '{' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 14 Error C2447 '{': missing function header (old-style formal list?) Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 14 Error C2653 'MessageBoxW': is not a class or namespace name Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 19 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 19 Error C2086 'int DialogResult': redefinition Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 19 Error C2146 syntax error: missing ';' before identifier 'Show' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 19 Error C2143 syntax error: missing ';' before '{' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 19 Error C2447 '{': missing function header (old-style formal list?) Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 19 Error C2653 'MessageBoxW': is not a class or namespace name Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 26 Error C2374 'GetButtonsFlag': redefinition; multiple initialization Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 26 Error C2086 'UINT GetButtonsFlag': redefinition Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 26 Error C2065 'MessageBoxButtons': undeclared identifier Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 26 Error C2146 syntax error: missing ')' before identifier 'buttons' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 26 Error C2143 syntax error: missing ';' before '{' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 26 Error C2447 '{': missing function header (old-style formal list?) Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 26 Error C2653 'MessageBoxW': is not a class or namespace name Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 42 Error C2374 'GetIconFlag': redefinition; multiple initialization Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 42 Error C2086 'UINT GetIconFlag': redefinition Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 42 Error C2065 'MessageBoxIcon': undeclared identifier Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 42 Error C2146 syntax error: missing ')' before identifier 'icon' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 42 Error C2143 syntax error: missing ';' before '{' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 42 Error C2447 '{': missing function header (old-style formal list?) Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 42 Error C2653 'MessageBoxW': is not a class or namespace name Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 59 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 59 Error C2086 'int DialogResult': redefinition Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 59 Error C2146 syntax error: missing ';' before identifier 'ConvertResult' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 59 Error C2143 syntax error: missing ';' before '{' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 59 Error C2447 '{': missing function header (old-style formal list?) Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 59 Error C2059 syntax error: '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 74 Error C2143 syntax error: missing ';' before '}' Win32CPPLib C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\source\Dialogs\MessageBox.cpp 74 Warning C4819 The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 1 Warning C4819 The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Win32CPP.h 1 Warning C4819 The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Core\Types.h 1 Warning C4819 The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 1 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 8 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 9 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 10 Error C2143 syntax error: missing ';' before '}' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 12 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 11 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 15 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 16 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 17 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 18 Error C2143 syntax error: missing ';' before '}' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 20 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 19 Error C2059 syntax error: '}' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 20 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 23 Error C2086 'int None': redefinition Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 23 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 24 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 25 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 26 Error C2143 syntax error: missing ';' before '}' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 28 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 27 Error C2059 syntax error: '}' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 28 Error C2059 syntax error: 'public' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 31 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 33 Error C2146 syntax error: missing ';' before identifier 'Show' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 33 Error C2059 syntax error: 'const' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 33 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 34 Error C2086 'int DialogResult': redefinition Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 34 Error C2146 syntax error: missing ';' before identifier 'Show' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 34 Error C2059 syntax error: 'const' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 34 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 35 Error C2086 'int DialogResult': redefinition Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 35 Error C2146 syntax error: missing ';' before identifier 'Show' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 35 Error C2059 syntax error: 'const' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 35 Error C2059 syntax error: 'private' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 37 Error C2065 'MessageBoxButtons': undeclared identifier Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 39 Error C2146 syntax error: missing ')' before identifier 'buttons' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 39 Error C2065 'MessageBoxIcon': undeclared identifier Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 40 Error C2146 syntax error: missing ')' before identifier 'icon' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 40 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 41 Error C2086 'int DialogResult': redefinition Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 41 Error C2146 syntax error: missing ';' before identifier 'ConvertResult' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 41 Error C2062 type 'int' unexpected Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 41 Error C2059 syntax error: '}' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 42 Error C2143 syntax error: missing ';' before '}' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 42 Error C2059 syntax error: '}' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 44 Error C2143 syntax error: missing ';' before '}' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Dialogs\MessageBox.h 44 Error C2143 syntax error: missing ';' before '{' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Win32CPP.h 22 Error C2447 '{': missing function header (old-style formal list?) Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPLib\include\Win32CPP.h 22 Error C2872 'Rectangle': ambiguous symbol Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 19 Error C2146 syntax error: missing ';' before identifier 'rect' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 19 Warning C4551 function call missing argument list Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 19 Error C3861 'rect': identifier not found Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 19 Error C2653 'MessageBoxW': is not a class or namespace name Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 24 Error C3861 'Show': identifier not found Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 24 Error C2653 'MessageBoxW': is not a class or namespace name Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 27 Error C3861 'Show': identifier not found Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 27 Error C2146 syntax error: missing ';' before identifier 'result' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 30 Error C2065 'result': undeclared identifier Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 30 Error C2653 'MessageBoxW': is not a class or namespace name Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 30 Error C2653 'MessageBoxButtons': is not a class or namespace name Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 33 Error C2653 'MessageBoxIcon': is not a class or namespace name Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 34 Error C3861 'Show': identifier not found Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 30 Error C2065 'result': undeclared identifier Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 37 Error C2825 'DialogResult': must be a class or namespace when followed by '::' Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 37 Error C2510 'DialogResult': left of '::' must be a class/struct/union Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 37 Error C2653 'MessageBoxW': is not a class or namespace name Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 38 Error C2653 'MessageBoxButtons': is not a class or namespace name Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 38 Error C2872 'OK': ambiguous symbol Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 38 Error C2653 'MessageBoxIcon': is not a class or namespace name Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 38 Error C3861 'Show': identifier not found Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 38 Error C2653 'MessageBoxW': is not a class or namespace name Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 40 Error C2653 'MessageBoxButtons': is not a class or namespace name Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 40 Error C2872 'OK': ambiguous symbol Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 40 Error C2653 'MessageBoxIcon': is not a class or namespace name Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 40 Error C3861 'Show': identifier not found Win32CPPTest C:\Users\RahmanTursun\source\repos\Win32CPP\Win32CPPTest\source\test.cpp 40
09-29
1>S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(14,12): error C2504: 'CComObjectRootEx': 基底類別未定義 1>(編譯來源檔案 '/TorchSrv.cpp') 1>S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(14,28): error C2143: 語法錯誤: 遺漏 ',' (在 '<' 之前) 1>(編譯來源檔案 '/TorchSrv.cpp') 1>S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(38,5): error C2039: 'Lock': 並非 'CPythonWrapper' 的成員 1>(編譯來源檔案 '/TorchSrv.cpp') 1> S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(13,21): 1> 請參閱 'CPythonWrapper' 的宣告 1>S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(38,5): error C2039: 'Unlock': 並非 'CPythonWrapper' 的成員 1>(編譯來源檔案 '/TorchSrv.cpp') 1> S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(13,21): 1> 請參閱 'CPythonWrapper' 的宣告 1>S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(38,5): error C2039: 'InternalQueryInterface': 並非 'CPythonWrapper' 的成員 1>(編譯來源檔案 '/TorchSrv.cpp') 1> S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(13,21): 1> 請參閱 'CPythonWrapper' 的宣告 1>S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(39,9): error C2440: 'static_cast': 無法由 'CPythonWrapper::_ComMapClass *' 轉換為 'IPythonWrapper *' 1>(編譯來源檔案 '/TorchSrv.cpp') 1> S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(39,9): 1> 指向的型別沒有相關; 轉換必須有 reinterpret_cast、C-Style 轉換或小括號內的函式樣式轉換 1>S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(40,9): error C2440: 'static_cast': 無法由 'CPythonWrapper::_ComMapClass *' 轉換為 'IDispatch *' 1>(編譯來源檔案 '/TorchSrv.cpp') 1> S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(40,9): 1> 指向的型別沒有相關; 轉換必須有 reinterpret_cast、C-Style 轉換或小括號內的函式樣式轉換 1>S:\SVN\SystemLib\Torch\TorchSrv\TorchSrv.h(38,5): error C2737: '_entries': 必須初始化 const 物件 1>(編譯來源檔案 '/TorchSrv.cpp')
06-23
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

szwm1010

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值