Linux下VScdoe在debug时出现这个The preLaunchTask 'build' terminated with exit code 1.报错

/usr/bin/ld:无法打开输出文件 -std=c++11:权限不够
collect2: error: ld returned 1 exit status
The terminal process terminated with exit code: 1

终端上出现这个报错,说权限不够

Linux下VScdoe在debug时出现这个The preLaunchTask 'build' terminated with exit code 1.报错_第1张图片

是这两个顺序不对

"-std=c++11",

"${fileDirname}/${fileBasenameNoExtension}"

交换一下就可以了

"${fileDirname}/${fileBasenameNoExtension}",

"-std=c++11" 

 

你可能感兴趣的:(Linux下VScdoe在debug时出现这个The preLaunchTask 'build' terminated with exit code 1.报错)