参考
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)。 终端将被任务重用,按任意键关闭。 解决办法: ?
或者用run in code 插件运行
|