KB07
KB07

Reputation: 1

PERMISSION DENIED

c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file C:\Users\Kratik\AppData\Roaming\Sublime Text 3\Packages\User/hii.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
[Finished in 0.6s]

enter image description here

Whenever I make a new program in the sublime, it shows the above error.

Upvotes: 0

Views: 206

Answers (1)

gile
gile

Reputation: 5976

It seems that answer is well explained in SublimeText forum and you should always googling trying to find already known answers.

Basically you get that error when you build a program that is already running, so it is locked by Windows.

In your case probably the error is due to gathering input: Sublime doesn’t forward any input that you type into the output panel to your running program.

As from the answer in SublimeText forum:

The solution there is either don’t execute (console) programs from Sublime that need to take interactive input, or if you do use a build system that will first open a command prompt window and execute your program in that; then you can interact with it directly.

Upvotes: 1

Related Questions