Sublime Text error

Hey! In many programs in sublime text I am getting this error-
Documents\SublimeText/Consumer-Producer.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
whereas the programs run fine on online ide.
What to do?

Hey @rachitbansal2500
When this happens, the most likely culprit is that the program that you built is already running, and because Windows locks files that are in use, attempts to re-link it fail because the existing executable is locked and thus the linker is not allowed to touch it. So the solution is, first stop the program if it’s already running by Ctrl+c on terminal, then try and compile the program again

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.