求助求助,有没有大佬说说情况
vscode吧
全部回复
仅看楼主
level 3
小出生😃 楼主
编译cpp文件总是报错,我明明看了文件名没错的
2024年10月07日 13点10分 1
level 12
你 .vscode/launch.json 配置文件不正确,里面配置的编译命令不对
2024年10月08日 06点10分 2
level 13
路径不要有中文
2024年10月08日 11点10分 3
level 3
小出生😃 楼主
{
"version": "0.2.0",
"configurations": [
{
"name": "g++ - 生成和调试活动文件",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "D:\\VS-Code\\Code\\C++\\Luogu\\Normal",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "D:\\mingw64\\bin\\gdb.exe",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
2024年10月09日 13点10分 4
@Dragon1573 大佬帮忙看看,这是我的launch.json[小乖]
2024年10月09日 13点10分
1