I’m working with Qt Creator 2.4.1 and I faced with one really annoying problem.
When I debug my project, I get following the error very often:
:-1: error: cannot open output file debug\qtrbdclient.exe: Permission denied
:-1: error: collect2: ld returned 1 exit status
The only way to solve it is to close Qt Creator and run it again. I really can’t understand why it happens again and again.
The most likely cause is that the program is still running. Make sure any running instances are closed. You can use Task Manager or Process Explorer to catch any open handles to your application.