Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LNK1168: cannot open debug\file.exe for writing

I have qt project but if I edit my code, Qt creator throws out this error

:-1: error: LNK1168: cannot open debug\GettingStarted.exe for writing

I'm not able even to delete the debug folder (i.e. as an administrator). I have to log off and then come back. What is the problem and how can I solve it?

like image 642
CroCo Avatar asked Jul 24 '15 01:07

CroCo


2 Answers

  1. Go to the task manager Ctrl+Alt+Del.
  2. look for the name of your running application in your case GettingStarted.exe.
  3. right click --> end process or just press Suppr . This will kill the running process.
  4. Go back to your code and run the application again
like image 54
The Beast Avatar answered Sep 22 '22 04:09

The Beast


In my simple case (Qt only, no external libs, same error LNK1168) the Task manager showed nothing useful to kill. Only total reboot has helped and error is gone.

like image 27
mih.net Avatar answered Sep 21 '22 04:09

mih.net