1、编译运行的时候会产生正在启动生成… D:\install\vscode\vscode&MinGW\x86_64-8.1.0-release-posix-sjlj-rt_v6-rev0\mingw64\bin\gcc.exe -fdiagnostics-color=always -g D:\install\vscode\Folder\hello.c -o D:\install\vscode\Folder\hello.exe ‘D:\install\vscode\vscode’ �����ڲ��
问题。
解决方案:
"args": [ "-fdiagnostics-color=always", "-g", "${file}", "-o", "${fileDirname}/${fileBasenameNoExtension}" ], 将其中的
“
f
i
l
e
"
,
替换为
"
{file}",替换为"
file",替换为"{workspaceFolder}/*.cpp”
参考链接:https://huaweicloud.csdn.net/6356077bd3efff3090b58e54.html?spm=1001.2101.3001.6650.4&utm_medium=distribute.pc_relevant.none-task-blog-2defaultCTRLISTactivity-4-123965166-blog-124808636.235^v32^pc_relevant_increate_t0_download_v2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2defaultCTRLISTactivity-4-123965166-blog-124808636.235v32pc_relevant_increate_t0_download_v2&utm_relevant_index=9
2、安装时的问题
通过管理员身份运行
链接:http://www.codebaoku.com/it-c/it-c-238507.html
https://blog.csdn.net/Hudiscount/article/details/120209994