Tianming_Wu 2022-02-01 12:14 采纳率: 100%
浏览 208
已结题

DEV C++ 5.11 编译时大量报错同一文件codecvt.h

使用DEV C++ 5.11编译的时候,出现了这个问题:

 az, 图片没了

 包括iosteram, cstdio, vector在内的头文件全部报错!!!

报错几乎位于同一个位置:codecvt.h

错误信息中出现大量std::嵌套,因此有点怀疑是库的包含关系错误,但是我 没  有  证  据

下面是错误信息:

430	0	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\x86_64-w64-mingw32\bits\c++config.h	In file included from C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/x86_64-w64-mingw32/bits/c++config.h
38		C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\iostream	                 from C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/iostream
4		G:\Hpj.Cpp\Minecraft Server Project\main.cpp	                 from main.cpp
41	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\codecvt.h	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
38	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\x86_64-w64-mingw32\bits\c++io.h	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
43	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\x86_64-w64-mingw32\bits\basic_file.h	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
47	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\fstream	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
41	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\fstream.tcc	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
41	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\sstream	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
39	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\sstream.tcc	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
70	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_tree.h	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
67	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_relops.h	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
77	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\utility	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
41	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\stdexcept	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
42	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\array	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
299	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\array	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
34	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\uses_allocator.h	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
42	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\tuple	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
66	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_map.h	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
64	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_multimap.h	[Error] pasting "_GLIBCXX_PSEUDO_VISIBILITY_" and "-" does not give a valid preprocessing token
41	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\codecvt.h	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
41	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\codecvt.h	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
38	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\x86_64-w64-mingw32\bits\c++io.h	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
38	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\x86_64-w64-mingw32\bits\c++io.h	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
43	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\x86_64-w64-mingw32\bits\basic_file.h	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
43	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\x86_64-w64-mingw32\bits\basic_file.h	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
47	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\fstream	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
47	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\fstream	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
41	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\fstream.tcc	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
41	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\fstream.tcc	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
41	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\sstream	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
41	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\sstream	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
39	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\sstream.tcc	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
39	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\sstream.tcc	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
67	0	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_tree.h	In file included from C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/bits/stl_tree.h
60		C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\map	                 from C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/map
7		G:\Hpj.Cpp\Minecraft Server Project\iniRW.h	                 from iniRW.h
10		G:\Hpj.Cpp\Minecraft Server Project\main.cpp	                 from main.cpp
44	27	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ext\aligned_buffer.h	[Error] expected template-name before '<' token
44	27	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ext\aligned_buffer.h	[Error] expected '{' before '<' token
44	27	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\ext\aligned_buffer.h	[Error] expected unqualified-id before '<' token
430	0	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\x86_64-w64-mingw32\bits\c++config.h	In file included from C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/x86_64-w64-mingw32/bits/c++config.h
38		C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\iostream	                 from C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/iostream
4		G:\Hpj.Cpp\Minecraft Server Project\main.cpp	                 from main.cpp
70	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_tree.h	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
70	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_tree.h	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
67	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_relops.h	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
67	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_relops.h	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
77	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\utility	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
77	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\utility	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
41	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\stdexcept	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
41	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\stdexcept	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
42	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\array	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
42	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\array	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
299	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\array	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
299	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\array	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
34	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\uses_allocator.h	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
34	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\uses_allocator.h	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
42	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\tuple	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
42	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\tuple	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
66	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_map.h	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
66	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_map.h	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
64	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_multimap.h	[Error] expected '{' before '_GLIBCXX_PSEUDO_VISIBILITY_'
64	15	C:\Program Files (x86)\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.9.2\include\c++\bits\stl_multimap.h	[Error] '_GLIBCXX_PSEUDO_VISIBILITY_' does not name a type
10	0	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	In file included from main.cpp
34	2	G:\Hpj.Cpp\Minecraft Server Project\iniRW.h	[Error] 'map' does not name a type
G:\Hpj.Cpp\Minecraft Server Project\iniRW.h	In member function 'void std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::SubNode::InsertElement(std::string, std::string)':
32	3	G:\Hpj.Cpp\Minecraft Server Project\iniRW.h	[Error] 'sub_node' was not declared in this scope
G:\Hpj.Cpp\Minecraft Server Project\iniRW.h	At global scope:
53	2	G:\Hpj.Cpp\Minecraft Server Project\iniRW.h	[Error] 'map' does not name a type
G:\Hpj.Cpp\Minecraft Server Project\iniRW.h	In member function 'std::vector<std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::ININode>::size_type std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::CMyINI::GetSize()':
47	47	G:\Hpj.Cpp\Minecraft Server Project\iniRW.h	[Error] 'map_ini' was not declared in this scope
G:\Hpj.Cpp\Minecraft Server Project\iniRW.h	In member function 'void std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::CMyINI::Clear()':
50	16	G:\Hpj.Cpp\Minecraft Server Project\iniRW.h	[Error] 'map_ini' was not declared in this scope
G:\Hpj.Cpp\Minecraft Server Project\main.cpp	In function 'int std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::WinMain(HINSTANCE, HINSTANCE, LPSTR, int)':
43	19	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] 'GetFileName' is not a member of 'std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::FileSys'
64	8	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] 'getch' was not declared in this scope
G:\Hpj.Cpp\Minecraft Server Project\main.cpp	In function 'int std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::LogSys::LogColorProcess(std::string, std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::colorcpl*, int*, int*, int*, bool)':
85	112	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] default argument given for parameter 6 of 'int std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::LogSys::LogColorProcess(std::string, std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::colorcpl*, int*, int*, int*, bool)' [-fpermissive]
29	5	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Note] previous specification in 'int std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::LogSys::LogColorProcess(std::string, std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::colorcpl*, int*, int*, int*, bool)' here
G:\Hpj.Cpp\Minecraft Server Project\main.cpp	In function 'int std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::LogSys::LogColorProcess(std::string, std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::colorcpl*, int*, int*, int*, bool)':
91	28	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] 'getLogLevel' was not declared in this scope
92	34	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] 'color' was not declared in this scope
G:\Hpj.Cpp\Minecraft Server Project\main.cpp	In function 'std::string std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::FileSys::getFilename()':
99	41	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] cannot convert 'WCHAR** {aka wchar_t**}' to 'LPSTR {aka char*}' for argument '2' to 'DWORD GetModuleFileNameA(HMODULE, LPSTR, DWORD)'
100	19	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] conversion from 'WCHAR* [1024] {aka wchar_t* [1024]}' to non-scalar type 'std::string {aka std::basic_string<char>}' requested
G:\Hpj.Cpp\Minecraft Server Project\main.cpp	At global scope:
105	66	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] 'int std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::FileSys::getColorcpl(std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::CMyINI*, std::vector<std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::colorcpl>*)' should have been declared inside 'std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::FileSys'
G:\Hpj.Cpp\Minecraft Server Project\main.cpp	In function 'int std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::FileSys::getColorcpl(std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::CMyINI*, std::vector<std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::colorcpl>*)':
107	50	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] cannot convert 'std::string {aka std::basic_string<char>}' to 'int' in initialization
114	13	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] cannot convert 'std::string {aka std::basic_string<char>}' to 'int' in assignment
116	13	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] cannot convert 'std::string {aka std::basic_string<char>}' to 'int' in assignment
118	13	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] cannot convert 'std::string {aka std::basic_string<char>}' to 'int' in assignment
120	13	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] request for member 'insert' in 'colorcpls', which is of pointer type 'std::vector<std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::colorcpl>*' (maybe you meant to use '->' ?)
G:\Hpj.Cpp\Minecraft Server Project\main.cpp	In function 'int std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::std::OptRead(int, char)':
131	39	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] 'getopt' was not declared in this scope
G:\Hpj.Cpp\Minecraft Server Project\main.cpp	At global scope:
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
145	1	G:\Hpj.Cpp\Minecraft Server Project\main.cpp	[Error] expected '}' at end of input
32		G:\Hpj.Cpp\Minecraft Server Project\Makefile.win	recipe for target 'main.o' failed

还有这个问题,我不知道错在哪里:

 项目开启了ISO-C++ 11, 因为一个插件需要。

  • 写回答

1条回答 默认 最新

  • dmm128073411 2023-01-02 17:38
    关注

    不是库的问题

    img


    你用的是gcc编译器(C语言),像一些C++的语法(比如命名空间当然会报错)

    img


    在这里改一下编译器试一试

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 6月30日
  • 已采纳回答 6月22日
  • 创建了问题 2月1日

悬赏问题

  • ¥15 删除虚拟显示器驱动 删除所有 Xorg 配置文件 删除显示器缓存文件 重启系统 可是依旧无法退出虚拟显示器
  • ¥15 vscode程序一直报同样的错,如何解决?
  • ¥15 关于使用unity中遇到的问题
  • ¥15 开放世界如何写线性关卡的用例(类似原神)
  • ¥15 关于并联谐振电磁感应加热
  • ¥60 请查询全国几个煤炭大省近十年的煤炭铁路及公路的货物周转量
  • ¥15 请帮我看看我这道c语言题到底漏了哪种情况吧!
  • ¥66 如何制作支付宝扫码跳转到发红包界面
  • ¥15 pnpm 下载element-plus
  • ¥15 解决编写PyDracula时遇到的问题