vscode编写C++出现collect2.exe: error: ld returned 1 exit status解决方案 迷途的路人 2021-06-11 1,028 阅读1分钟 解决方法一 在 vscode 编写完代码后,先按 Ctrl+s 保存,然后在编译运行,即可解决。