Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Error: ld returned 1 exit status
Nisha_R last edited by A Former User
error: cannot open output file debug\XYZ.exe: Permission denied.
What exactly does this mean?
The program works fine if the new project is created with the same program in it.
@Nisha_R Check if
XYZ.exeis running already.
Eeli K last edited by
Sometimes a GUI programs vanishes from the display got is still running background. Close all Application Output tabs from Qt Creator and run the project again. Then try cleaning and rebuilding. The last resort (maybe it should sometimes be the first resort) is to manually delete the build directory and rebuild from scratch, that always works for me. Deleting it also reveals all hidden running instances because you can't delete a file which is in use.
You must be hitting this issue on windows. Windows os will not allow to rewrite the exe file if process is already running using same executable. Go to task manager and kill the process with the executable name. After this u be alright.
Nisha_R last edited by
@dheerendra Thank you, got it resolved.