eclipse中写c++第一次编译运行没问题,再修改一下代码,编译运行就这样

c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot open output file test.exe: Permission denied collect2.exe: error: ld returned 1 exit status

这种下情况大部分是因为你先前编译的程序正在被使用,或正在运行,导致不能重新编译,你可以重启一下eclipse,或者新建工程复制一下源代码,在编译一下
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答