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

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

是这两个顺序不对

"-std=c++11",

"${fileDirname}/${fileBasenameNoExtension}"

交换一下就可以了

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

"-std=c++11" 

 


版权声明:本文为weixin_42099082原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。