Why my dev-c++ “can't open output file”?

こ雲淡風輕ζ 提交于 2019-12-13 05:34:19

问题


When I re-complied a .cpp file after crashing, my compiler told me this.

g:/program files (x86)/dev-cpp/mingw64/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot open output file C:\Users\chanson\Desktop\quickSort.exe: Permission denied

collect2.exe: error: ld returned 1 exit status

Compilation failed after 1.00 seconds with errors

My system is win8.1, compiler is TDM-GCC 4.8.1 64-bit Release. I think it's the problem of my OS, but how can I fix this problem? Thanks a lot!


回答1:


Usually the "permission denied" is because an instance of your program is still running.

You can use Task Manager to kill it.

Ctrl+Shift+Esc to run Task Manager, go to tab "Processes", find your process, kill it, but be careful. :)


Practical tip:

If you use the console subsystem for your app, at least while developing, then you can just run it from the command line, and kill it with Ctrl+C or Ctrl+Break.



来源:https://stackoverflow.com/questions/20439193/why-my-dev-c-cant-open-output-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!