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

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • How to fix Cannot open output file: Permission denied collect2.exe: error: ld returned 1 exit status
    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.

Комментарии • 68

  • @adityakadam024
    @adityakadam024 5 месяцев назад +15

    i have no anti virus installed

  • @Ahmad.110
    @Ahmad.110 2 года назад +10

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

    • @EasternBoss
      @EasternBoss Год назад

      You maybe just have to rename the file without anything else, like what I did.

  • @Galing28
    @Galing28 Год назад +3

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

  • @JSD_LivZ_07
    @JSD_LivZ_07 2 года назад +3

    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.
    🙂

  • @martinshonel2415
    @martinshonel2415 2 года назад +26

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

  • @Redclifgrey
    @Redclifgrey Месяц назад

    Thanks bro
    It’s been so hectic until i found your video

  • @apollosun2913
    @apollosun2913 Год назад +3

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

  • @GoGameDeveloper
    @GoGameDeveloper 6 месяцев назад

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

  • @aswinmanmathans6837
    @aswinmanmathans6837 2 года назад +2

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

  • @pradnyajadhav1200
    @pradnyajadhav1200 9 дней назад

    this is not solving my problem
    it is again showing me that cannot open output file trial.exe: Permission denied

  • @1001brians
    @1001brians 2 года назад +2

    ayee bro God bless you mate! Hiuuge thanks !

  • @Tbm4545
    @Tbm4545 3 месяца назад +1

    I did this still that permission denied thing comes up

    • @ashraflaam3400
      @ashraflaam3400 2 месяца назад

      try renaming your file, it worked for me

  • @hamidsiddiqui4818
    @hamidsiddiqui4818 2 года назад

    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

  • @anyanwuibeawuchis.3558
    @anyanwuibeawuchis.3558 11 месяцев назад

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

  • @kakarottoxnaruto5215
    @kakarottoxnaruto5215 2 года назад +1

    thanks bro keepppp the good workk goingg 😀😉

  • @realdealholyfield9616
    @realdealholyfield9616 2 года назад

    disabled the antivirus, it worked thanks

  • @RohitKumar-yf3tg
    @RohitKumar-yf3tg Год назад +1

    but i don't have antivirus

  • @oswaldo586sg
    @oswaldo586sg 2 года назад +1

    Thank you so much :D

  • @atishayjain8451
    @atishayjain8451 8 месяцев назад

    Thank you so much Brother!!!

  • @osamashaikh8495
    @osamashaikh8495 2 года назад +1

    I have mc affee antivirus there is no exception options

    • @scarlet2207
      @scarlet2207 6 месяцев назад

      How you resolved the problem?

  • @TuanAnhNguyen-ij8ii
    @TuanAnhNguyen-ij8ii Год назад

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

  • @sisirpradhan5657
    @sisirpradhan5657 2 года назад

    Thanks brother,it is working 🙃

  • @susanadtavares
    @susanadtavares 8 месяцев назад

    I uninstalled the antivirus and keeps saying permission denied

    • @Bnquis
      @Bnquis Месяц назад

      how dod u fix the problem im having that issue rn

  • @rohansamrat5917
    @rohansamrat5917 Год назад

    thanks a lot bro
    , its working now

  • @ricsrodri
    @ricsrodri 2 года назад +1

    Thaksssss!!!!!!!!!!

  • @vitaliinnest
    @vitaliinnest 2 года назад +1

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

    • @orangeygoldfish
      @orangeygoldfish  2 года назад +4

      hello you can go to the ( windows security > virus threat protection > go to manage settings > add or remove exclusions) there you can add exception to the folder where your c file is located. hope it helpss

    • @bkp9706
      @bkp9706 2 года назад

      @@orangeygoldfish Thank you so much brother this helps me a lot
      You got a subscriber ❤️

    • @maryjoby780
      @maryjoby780 2 года назад +1

      @@orangeygoldfish Hello, this menthod didnt solve my problem..tried both the ways..can you please help?

    • @digital.diaries3195
      @digital.diaries3195 Год назад +1

      @@orangeygoldfish Hello, both method didn't help me

    • @jarvis9263
      @jarvis9263 Год назад +1

      @@orangeygoldfish i did exactly as u instructed, still this is not working... oh god i'm gonna quit c programming

  • @Ajaygodara123
    @Ajaygodara123 Год назад

    Bro same problem same antivirus but not working for me.

  • @imhere2360
    @imhere2360 2 года назад +3

    Thank buddy 💵

  • @user-kl4vc9sf5b
    @user-kl4vc9sf5b Год назад

    thanks bro for help

  • @asthagupta725
    @asthagupta725 7 месяцев назад

    helpful video

  • @D.E.E.C
    @D.E.E.C 3 месяца назад

    D̶͔̭̪̻Ḛͭ̉̇͟N̺̻̔̆ͅI̍̅̀̎̊Ḛͭ̉̇͟D̶͔̭̪̻ Ḛͭ̉̇͟X̵̹̬̄̽Ḛͭ̉̇͟C̵͉͋̔͞ Ḛͭ̉̇͟X̵̹̬̄̽Ḛͭ̉̇͟

  • @lailisyuen7102
    @lailisyuen7102 Год назад

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

    • @orangeygoldfish
      @orangeygoldfish  Год назад +1

      It's not necessarily that you disable the window defender, file exception will do.

  • @Alexdu0720
    @Alexdu0720 Год назад

    don't work

    • @JayeetaDas-zs2gu
      @JayeetaDas-zs2gu Год назад

      Then how did you solve ??please tell

    • @Alexdu0720
      @Alexdu0720 Год назад

      @@JayeetaDas-zs2gu it's been 3 month soo I don't remember, maybe try restart the game or search is the steam page forum

    • @Alexdu0720
      @Alexdu0720 Год назад

      but yes i solved the problem

  • @javavs2175
    @javavs2175 2 года назад +1

    it helps

  • @cardopubgm6412
    @cardopubgm6412 2 года назад

    How to do without computer?

  • @ShahriarEmon964
    @ShahriarEmon964 Год назад

    not working bro. I really suffer from it 🥲🥲

  • @nadeemahmed8664
    @nadeemahmed8664 2 года назад +2

    But I don't have any antivirus

    • @orangeygoldfish
      @orangeygoldfish  2 года назад +2

      hello you can go to the ( windows security > virus threat protection > go to manage settings > add or remove exclusions) there you can add exception to the folder where your c file is located. hope it helpss

    • @nadeemahmed8664
      @nadeemahmed8664 2 года назад

      @@orangeygoldfish thanks bro ✌️

    • @maryjoby780
      @maryjoby780 2 года назад

      @@nadeemahmed8664 bro this didnt help me ..can you please help?

    • @nadeemahmed8664
      @nadeemahmed8664 2 года назад +3

      @@maryjoby780 bro jaha apne folder bnaya haii jaha ap c ke file save kr rahe ho waha sbse upr a.exe file hogi usko delete krna hai 📂 mai

    • @maryjoby780
      @maryjoby780 2 года назад

      @@nadeemahmed8664 thank you thank you thank you thank you sooo much 🥺 may god always keep you healthy and happy bro