"compilerPath": “C:\MinGW\bin\gcc.exe”,
时间: 2023-08-20 12:07:55 浏览: 88
问题出在你的 c_cpp_properties.json 文件的第 8 行,具体是在 "compilerPath" 的值上。你在这一行使用了中文的引号符号 “ ”,而应该使用英文的引号符号 "。
请将你的 c_cpp_properties.json 文件中的第 8 行修改为以下内容:
"compilerPath": "C:\\MinGW\\bin\\gcc.exe",
注意到我在路径中使用了双斜杠来转义反斜杠,这是因为在 JSON 文件中反斜杠是一个特殊字符,需要进行转义。
修改后保存文件并重新尝试加载项目,这个错误应该会得到解决。如果还有其他问题,请随时提问。
相关问题
无法使用 compilerPath“C:\MinGW\bin\g++.exe”解析配置。 请改用“C:\Program Files\mingw64\bin\gcc.exe”。
根据引用和引用的内容,你遇到了一个编译器路径解析配置的问题。原本你使用的是compilerPath“C:\MinGW\bin\g .exe”,但无法解析配置。建议你改用“C:\Program Files\mingw64\bin\gcc.exe”。这个问题的解决方案是根据引用,找到并打开编译器路径配置,将路径改为建议的gcc.exe路径。这样问题就可以圆满解决了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [vscode中,无法使用gcc解析配置,请改用“cl.exe”,卸载Vs即可](https://blog.csdn.net/wx18045623090/article/details/124774469)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
compilerPath“c:\Users\21735\Documents\C++code\.vscode\112.cpp”解析配置。 请改用“C:\mingw64\bin\gcc.exe”
compilerPath "c:\Users\21735\Documents\C code\.vscode\112.cpp" 是一个编译器路径,它指定了用于编译C++代码的编译器的位置。然而,根据您的要求,您想将编译器路径更改为"C:\mingw64\bin\gcc.exe"。将新的编译器路径设置为"C:\mingw64\bin\gcc.exe"将允许您使用gcc编译器来编译C++代码。