Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot open output file debug\serbest.exe: Permission denied

Tags:

c++

qt

I compile a Qt program with C++, and I got this error message:

cannot open output file debug\serbest.exe: Permission denied
collect2: ld returned 1 exit status

What are these command's meaning?

How do I get rid of these errors?

like image 734
zibib Avatar asked Jul 27 '10 10:07

zibib


People also ask

Can not open output file access is denied eclipse?

Eclipse C/C++: Cannot open output file *.exe: Permission denied. Solution: It's most likely that your EXE is running and can't be overwritten by the compile process. You have to stop all running processes of your EXE.

Can't open file permission denied Linux?

To fix the permission denied error in Linux, one needs to change the file permission of the script. Use the “chmod” (change mode) command for this purpose.


2 Answers

Most likely cause: serbest.exe is still running. Check with TaskManager.

like image 60
Henk Holterman Avatar answered Oct 27 '22 07:10

Henk Holterman


It says the current user is not having enough right to write onto the debug folder. Check whether you can create a new file in the folder as referred to.

like image 33
Kangkan Avatar answered Oct 27 '22 06:10

Kangkan