Win10下VSCode编译.cpp文件报错:ld.exe: can not open file ...xxx.exe:permission denied collect2.exe error

编译cpp文件时报错:

ld.exe: can not open file ...xxx.exe:permission denied collect2.exe error 
ld returned 1 exit status

原因:代码当前目录(包括子目录)下有同名的.exe文件,会报此错误,只要把名字改一下就行了

发布了92 篇原创文章 · 获赞 127 · 访问量 23万+

猜你喜欢

转载自blog.csdn.net/Blateyang/article/details/90115207