How to fix Cannot open output file: Permission denied collect2.exe: error: ld returned 1 exit status

preview_player
Показать описание

Solution:

- Disable the Antivirus

[Commnet]
The antivirus might prevent the code to run. It deletes the .exe file. Thus, prompting us about the Permission denied error when we try to run it.

-----------------------------------
Disclaimer:
It works for me and this might not work for everybody.
Рекомендации по теме
Комментарии
Автор

Tysm! I was litterally searching for an answer for 2 hrs till i got here. You really helped me! You got my sub

Galing
Автор

I was searching for solving this problem for 3 hours until I saw you. Big thank to you Bro

Ahmad.
Автор

For me, just changing the file name did the trick.

martinshonel
Автор

Thanks Bro.
It helps me a lot.
I have encountered many problems since I have installed VS CODE.
I thank this cannot be fixed but, Then I saw you video.
Really Very Helping.
🙂

JSD_LivZ_
Автор

Doesn't work for me. I even temporarily disabled my AV but keep getting the same error.

apollosun
Автор

Wow, I thought I was going crazy 😂
Thank you so much!

GoGameDeveloper
Автор

I'm done with McAfee they don't provide an option to exclude a folder, instead they recommend a 'file' only

aswinmanmathans
Автор

I uninstalled the antivirus and keeps saying permission denied

susanadtavares
Автор

ayee bro God bless you mate! Hiuuge thanks !

brians
Автор

I did this still that permission denied thing comes up

Tbm
Автор

disabled the antivirus, it worked thanks

realdealholyfield
Автор

Thanks to you my code is now running. all YT channel saying u haven't saved your file that's why its not working bruhh. Am I dumb .
whatever thanku

hamidsiddiqui
Автор

Thank you so much, you have saved a brother!!!

anyanwuibeawuchis.
Автор

I don't know how to open my antivirus. Can u help me T-T

TuanAnhNguyen-ijii
Автор

I have mc affee antivirus there is no exception options

osamashaikh
Автор

thanks bro keepppp the good workk goingg 😀😉

kakarottoxnaruto
Автор

Bro same problem same antivirus but not working for me.

dufferxcamp
Автор

I've got no antivirus. The video didn't help(

vitaliinnest
Автор

hmm...solving it by disabling the window defender and allowing the access. Thanks anyway~

lailisyuen
Автор

Ḛͭ̉̇͟X̵̹̬̄̽Ḛͭ̉̇͟C̵͉͋̔͞ Ḛͭ̉̇͟X̵̹̬̄̽Ḛͭ̉̇͟

D.E.E.C