Khư*_*Mai 3 c++ compiler-errors visual-studio-code
我刚刚开始使用 VSCode,遇到了这个错误并尝试了一些方法来修复,但它不起作用。
这是我的 launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "C/C++: Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "C:\\TDM-GCC-64\\gdb64\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: g++.exe build active file"
}
]
Run Code Online (Sandbox Code Playgroud)
小智 5
通过执行以下步骤解决问题。
转到 Windows 控制面板(您可以通过打开文件资源管理器并在路径中键入“控制面板”(不带引号)并按 Enter 键来执行此操作);
在控制面板中,单击“时钟和区域”。
单击区域。将打开一个新屏幕。
在打开的屏幕中,单击“管理”并搜索“更改系统位置”按钮。
选中选项:“Beta:使用 Unicode UTF-8 进行世界语言支持”
重新启动计算机。
代表提问者发表
| 归档时间: |
|
| 查看次数: |
14182 次 |
| 最近记录: |