Qt error: cannot open output file debugging

Today I debugged my program and suddenly, due to a power failure, my computer shutdown abnormally. Now, when I compile this program, it gives me two errors.

  : -1: error: cannot open output file debug \ Myprogram.exe: Invalid argument
 : -1: error: collect2: ld returned 1 exit status

I cleaned the program, rebuilt it. Ran qmake. Closed the compiler and restarted to compile the program, first running qmake, then debugging, but useless. The program does not compile. I am new and not very good at these issues, so I ask this question. :). How can I fix this.

+4
source share
3 answers

Delete the entire shadow tree creation directory if you use a shadow assembly (the default assembly is used by default), then run QtCreator and try to create.

+1
source

The debugger probably placed the lock in a directory / directory that was not released due to a power failure. Try deleting the Debug folder or using a tool (for example, one ) to unlock the directory.

0
source

Sometimes exes will work already. if so, you need to go to the output tab of the Qt Creator application and close the executables, then it will work.

0
source

Source: https://habr.com/ru/post/1400250/


All Articles