参考
Get Started with C++ and Windows Subsystem for Linux in Visual Studio Code
学习过程中出现
-
Executing task: C/C++: gcc 生成活动文件 <
正在启动生成... /usr/bin/gcc -g /home/huxiaohls/jump_test/.vscode/tasks.json -o /home/huxiaohls/jump_test/.vscode/tasks /usr/bin/ld:/home/huxiaohls/jump_test/.vscode/tasks.json: file format not recognized; treating as linker script /usr/bin/ld:/home/huxiaohls/jump_test/.vscode/tasks.json:1: syntax error collect2: error: ld returned 1 exit status 生成已完成,但出现错误. 终端进程启动失败(退出代码: -1)。 终端将被任务重用,按任意键关闭。 解决办法:![](https://img-blog.csdnimg.cn/20211007204621545.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBA6JmO5ZW4aA==,size_20,color_FFFFFF,t_70,g_se,x_16) ?
或者用run in code 插件运行
|