rt,现在是有个叫 fs_path.h
的头文件报了 12 个错。大概率是 filesystem
的问题,导致现在无法编译运行。
[{
"resource": "/d:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h",
"owner": "cpptools",
"severity": 8,
"message": "no match for 'operator!=' (operand types are 'std::filesystem::__cxx11::path' and 'std::filesystem::__cxx11::path')",
"source": "gcc",
"startLineNumber": 237,
"startColumn": 47,
"endLineNumber": 237,
"endColumn": 47
},{
"resource": "/d:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h",
"owner": "cpptools",
"severity": 8,
"message": "specialization of 'std::filesystem::__cxx11::path::__is_encoded_char<wchar_t>' after instantiation",
"source": "gcc",
"startLineNumber": 511,
"startColumn": 18,
"endLineNumber": 511,
"endColumn": 18
},{
"resource": "/d:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h",
"owner": "C/C++: IntelliSense",
"code": "135",
"severity": 8,
"message": "命名空间 \"std::filesystem\" 没有成员 \"path\"",
"source": "C/C++",
"startLineNumber": 585,
"startColumn": 29,
"endLineNumber": 585,
"endColumn": 33
},{
"resource": "/d:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h",
"owner": "cpptools",
"severity": 8,
"message": "no matching function for call to 'u8path(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator)'",
"source": "gcc",
"startLineNumber": 589,
"startColumn": 68,
"endLineNumber": 589,
"endColumn": 68
},{
"resource": "/d:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h",
"owner": "C/C++: IntelliSense",
"code": "135",
"severity": 8,
"message": "命名空间 \"std::filesystem\" 没有成员 \"path\"",
"source": "C/C++",
"startLineNumber": 598,
"startColumn": 29,
"endLineNumber": 598,
"endColumn": 33
},{
"resource": "/d:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h",
"owner": "cpptools",
"severity": 8,
"message": "'value_type' was not declared in this scope",
"source": "gcc",
"startLineNumber": 601,
"startColumn": 20,
"endLineNumber": 601,
"endColumn": 20
},{
"resource": "/d:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h",
"owner": "cpptools",
"severity": 8,
"message": "template argument 1 is invalid",
"source": "gcc",
"startLineNumber": 601,
"startColumn": 30,
"endLineNumber": 601,
"endColumn": 30
},{
"resource": "/d:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h",
"owner": "cpptools",
"severity": 8,
"message": "'string_type' was not declared in this scope",
"source": "gcc",
"startLineNumber": 602,
"startColumn": 7,
"endLineNumber": 602,
"endColumn": 7
},{
"resource": "/d:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h",
"owner": "cpptools",
"severity": 8,
"message": "'__tmp' was not declared in this scope",
"source": "gcc",
"startLineNumber": 603,
"startColumn": 45,
"endLineNumber": 603,
"endColumn": 45
},{
"resource": "/d:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h",
"owner": "cpptools",
"severity": 8,
"message": "cannot bind rvalue reference of type 'std::filesystem::__cxx11::path::string_type&&' {aka 'std::__cxx11::basic_string<wchar_t>&&'} to lvalue of type 'const string_type' {aka 'const std::__cxx11::basic_string<wchar_t>'}",
"source": "gcc",
"startLineNumber": 1014,
"startColumn": 69,
"endLineNumber": 1014,
"endColumn": 69
},{
"resource": "/d:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h",
"owner": "cpptools",
"severity": 8,
"message": "no matching function for call to 'std::filesystem::__cxx11::path::path(const string_type&)'",
"source": "gcc",
"startLineNumber": 1014,
"startColumn": 72,
"endLineNumber": 1014,
"endColumn": 72
},{
"resource": "/d:/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/fs_path.h",
"owner": "cpptools",
"severity": 8,
"message": "no matching function for call to 'std::filesystem::__cxx11::path::path(std::basic_string_view<wchar_t>&)'",
"source": "gcc",
"startLineNumber": 1021,
"startColumn": 28,
"endLineNumber": 1021,
"endColumn": 28
}]
有人知道怎么解决吗