Sublime Forum

Getting a problem to execute a code with scanf function in C

#1

c:/mingw/bin/…/lib/gcc/mingw32/6.3.0/…/…/…/…/mingw32/bin/ld.exe: cannot open output file C:\Users\dhruv\C-programs/hello.exe: Permission denied
collect2.exe: error: ld returned 1 exit status

Getting this error.
Background - While executing a regular code with no user interaction, the code works with excellence. However, when I’m trying to use either scanf function or switch case, I get this error. Is there a way to solve this?
I’ve given all permissions to both files yet still not working.
Please help me out.
Thank you.

0 Likes

#2

This has been answered countless times.

Please search: https://forum.sublimetext.com/search?q=build%20system%20input

0 Likes