0
[Running] cd "c:\Users\Adi\Desktop\Proagrams\C\" && gcc aadi.c -o aadi && "c:\Users\Adi\Desktop\Proagrams\C\"aadi
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot open output file aadi.exe: Permission denied
collect2.exe: error: ld returned 1 exit status

how can I solve this? I am a beginner.

Aconcagua
  • 24,880
  • 4
  • 34
  • 59
Aditya
  • 1
  • 1
  • 1
    Perhaps the previous is still running. – Weather Vane Oct 11 '22 at 10:44
  • This typically happens (on windows) if the application is yet running – find its window (if any) and close it – or shut it down via task manager. – Aconcagua Oct 11 '22 at 10:45
  • 1
    Does this answer your question? [ld.exe: cannot open output file ... : Permission denied](https://stackoverflow.com/questions/7655471/ld-exe-cannot-open-output-file-permission-denied) – Gerhardh Oct 11 '22 at 10:46

0 Answers0