EXE manually or otherwise interact with it, Windows tells me I need administrator permission to do so (this is a private PC, and as far as I know I am an administrator on it).
When you run your code, whether it has a printout, the debugger will call the console which print a "Press any key to continue...".
If you terminate the console by pressing key, it's ok; if you do it by click the close button, the problem comes as you described.
To eliminate this problem, run the as an administrator.
You could also change the permission from properties and allowing access read write modify etc for the system and by the system.
Either by right click if you are unable to change permission then use use open terminal(command promt) to change permission.
first go to that executable file using 'cd' command then use "chmod u x" then permission is going to go to c::b open and execute you will get output. The problem is that you don't have the administrator rights to access it as running or compilation of something is being done in the basic C drive.When you terminate it in the latter way, you have to wait several minutes before you can rebuild your code. I found that it may have some relationship with the way you terminate your run result.When you terminate it in the latter way, you have to wait several minutes before you can rebuild your code." @Elanasys I'm sorry if I misunderstood your answer.I have read around a bit and tried varous solutions from other forums but none seem to work. When I try to compile and run simple programs it gives me the error message 'sh: /path/to/my/file: permission denied'. Cheers Can you find the file using the file manager? The commands you were typing were: Your question makes sense.I have read around a bit and tried varous solutions from other forums but none seem to work. I had the SAME problem when running Code:: Blocks on Ubuntu and my source folder was on an NTFS partision.This seems to close the running programm and everything works fine after :) hope this may help anyone FOR LINUX OS...