c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot open output file test2.exe: Permission denied
collect2.exe: error: ld returned 1 exit status

closed as unclear what you're asking by JakeGould, Toto, Run5k, Scott, DavidPostill Feb 10 at 21:41

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Why are you attempting to work on an exe file (test2.exe) with a text editor? – JakeGould Feb 10 at 15:33
  • 1
    First of all, welcome to Super User! We are always glad to help, but you apparently have two Super User accounts: this one and this one. Please take the time to utilize the following Help Center tutorial and ask the Super User staff to merge your accounts: I accidentally created two accounts; how do I merge them? – Run5k Feb 10 at 19:09