level 2
V3奥特曼
楼主
c_cpp_properties.json配置代码如下:
{ "configurations": [ { "name": "Win32", "includePath": [ "${workspaceFolder}", "C:/MinGW_W64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++", "C:/MinGW_W64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32", "C:/MinGW_W64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward", "C:/MinGW_W64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include", "C:/MinGW_W64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed", "C:/MinGW_W64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include" ], "defines": [ "_DEBUG", "UNICODE", "_UNICODE" ], "compilerPath": "C:/MinGW_W64/mingw64/bin/gcc.exe", "cStandard": "c11", "cppStandard": "c++17", "intelliSenseMode": "clang-x64" } ], "version": 4}
问题一:
Failed to parse "\.vscode\c_cpp_properties.json": ENOENT: no such file or directory, open '\.vscode\c_cpp_properties.json'
地址肯定没错,变量名没变
问题二:
"compilerPath":“<path>"
当中path是gcc.exe还是clang.exe。网上还看到过C:/LLVM/bin/gcc.exe 。。。。
问题三:
setting.json是不是可有可无。
2019年10月28日 16点10分
1
{ "configurations": [ { "name": "Win32", "includePath": [ "${workspaceFolder}", "C:/MinGW_W64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++", "C:/MinGW_W64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32", "C:/MinGW_W64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward", "C:/MinGW_W64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include", "C:/MinGW_W64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed", "C:/MinGW_W64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include" ], "defines": [ "_DEBUG", "UNICODE", "_UNICODE" ], "compilerPath": "C:/MinGW_W64/mingw64/bin/gcc.exe", "cStandard": "c11", "cppStandard": "c++17", "intelliSenseMode": "clang-x64" } ], "version": 4}
问题一:
Failed to parse "\.vscode\c_cpp_properties.json": ENOENT: no such file or directory, open '\.vscode\c_cpp_properties.json'
地址肯定没错,变量名没变
问题二:
"compilerPath":“<path>"
当中path是gcc.exe还是clang.exe。网上还看到过C:/LLVM/bin/gcc.exe 。。。。
问题三:
setting.json是不是可有可无。