Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt error: cannot open output file debug

Tags:

c++

qt

Today I was debuging my program and suddenly due to power failure, my pc shutdown abnormally. Now when I compile that 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 relaunched to compile program by first running qmake, then debugging but worthless. The program isn't getting compiled. I am a beginner and don't have much knowledge about these problems so bear this question. :). How can i fix it.

like image 902
Umer Farooq Avatar asked Nov 04 '22 04:11

Umer Farooq


1 Answers

Delete entire shadow build directory if you are using shadow build (default build setting is shadow build), then launch QtCreator and try to build.

like image 162
ankit.ckt Avatar answered Nov 09 '22 16:11

ankit.ckt