How to fix - [

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • I recently came across this error statement when I included bits/stdc++.h file to my C++ program in VS Code.
    The solution to resolve this error for a MacOS is slightly different.
    I have explained in 6 simple steps, how to fix the error -
    1. Open your terminal and type the command: cpp -v
    2. Get the [path] from step 1, and go to the specified location using the command: cd [path]
    3. Inside the include directory, create a bits directory using the command: sudo mkdir bits
    4. Inside the bits directory (using the command: cd bits), create and open a file under the name stdc++.h using the command: sudo vim stdc++.h
    5. copy and paste the contents of the link below to the file stdc++.h
    raw.githubuser...
    6. Quit and reopen your program on VS Code
    Should work!! All the best. Happy Coding :)
    My social media handle-
    Linkedin - / samidhasingh92
    Instagram - / singhssamidha
    If you find this video helpful, please like, share, and subscribe!
    #c++ #coding #programming #includeerrorsdetected #include #error #updateincludepath
    #vscode

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

  • @dantefresh2605
    @dantefresh2605 9 месяцев назад +5

    This was the most helpful video for Mac users with the same problem. Thanks a lot

  • @rahulkumargupta5711
    @rahulkumargupta5711 18 дней назад

    I was looking for this solution for the whole day today and finally I am feeling lucky that I landed on this video. You have resolved my issue where my header files were not being picked up. Thank you so much for the help and making our lives easier. Keep making such useful content.

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

    That really helped a lot it's better than 99% of the youtube videos please keep us updated with such issues and their solutions. Thank you

  • @user-zf5yx9to8h
    @user-zf5yx9to8h 2 месяца назад

    It was an extremely useful video to fix the problem of including path.
    Will you please consider making a separate video for the concepts of "sudo" and "vim" commands and their usage in our upcoming programming career🙏🧐.

  • @thearpitpatni
    @thearpitpatni 9 месяцев назад +1

    Thank you so much.After so many hit and trial finally this worked

  • @ayanshshankar9692
    @ayanshshankar9692 25 дней назад

    thank you so much . I was stuck with the same error and your solution worked!!

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

    I don't see the stdc++.h file anywhere in the description

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

    Thank you very much this video was very helpful. I finally have this issue fixed and I can start programming again.

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

    thank you for this simple and amazing video.
    i was facing this problem since 2 years and by. the help of your video its finally been solved thanks

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

    THANK YOU SO SO MUCH. It was the most helpful video!

  • @alejandropereira
    @alejandropereira 3 месяца назад

    Thank you so much! This totally helped me!

  • @dhamotz4737
    @dhamotz4737 4 месяца назад

    bhai bhai bhai it works yarr mene legit striver se dekha thaa uski video se nai chlaa , iss bndi ki is chotin se video se chlgyaa

  • @nymphea9810
    @nymphea9810 7 месяцев назад +1

    Does not work

  • @user-io3zt7ei1s
    @user-io3zt7ei1s Месяц назад

    It works, thanks !!

  • @julia_aman
    @julia_aman 10 месяцев назад +1

    ❤ Dear Samidha! Thank you very much for so helpful video! I've met the same issue with includes in Visual Studio Code but for some reason, my path is different by Terminal command cpp -v.
    It is /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
    But I have also /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include
    What should I do in this situation? To try to create a 'bits' directory in Xcode folder or CommandLineTools?
    Thank you! ❤

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

      did you solve the problem?

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

    where to write cd /Library/Developer/CommandLineTools/usr/include this command

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

    thanks a lot , really helpful

  • @kumar_basnet
    @kumar_basnet 4 месяца назад

    I am unable to fix conio.h error. Please help me.

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

    thank you!

  • @krishnapanchajanya6639
    @krishnapanchajanya6639 4 месяца назад

    but why include iostream.h header file then if we include our bits/stdc++.h if I remove it I am getting error near cout itself help me

  • @amirsalah774
    @amirsalah774 10 месяцев назад

    i have the same problem but with my gcc compiler. The conio.h include doesn't work. Who can help me please ?

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

    Thanks for your sharing

  • @bighg3831
    @bighg3831 Год назад +2

    still not working

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

    Thank You Ji ❤

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

    where to apply second step

  • @user-bc2qb3pg2n
    @user-bc2qb3pg2n 10 месяцев назад

    thank you mam 😄

  • @jirkadolezal8127
    @jirkadolezal8127 11 месяцев назад

    do I need install xcode?

  • @Soham_tune
    @Soham_tune 10 месяцев назад

    The site is not opening please help

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

    Thank you madam

  • @riteshsrivastava3447
    @riteshsrivastava3447 4 месяца назад

    not fixed , can anyone help ?

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

    helpful! ❤️

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

    why this is not working, I do the exactly same things as you tell.

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

      what is wrong? what step isnt it working?

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

    tHANK YOU SOO. MUCHHHHHHHHHH

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

    1:09 How to use this screen? Completely incomprehensible for beginners

    • @AnaGuerra03
      @AnaGuerra03 7 месяцев назад +1

      still need help?

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

      i do​@@AnaGuerra03

    • @KrishAgrawal-dv1tq
      @KrishAgrawal-dv1tq 3 месяца назад

      @@AnaGuerra03 yes please how to jump into this specific terminal window!!!!

    • @AnaGuerra03
      @AnaGuerra03 3 месяца назад

      @@KrishAgrawal-dv1tq in which specific step do you have trouble? if you want to switch terminals you can go ahead and do left click on the terminal logo icon in the task bar and you will have all the terminals that you are using and you can click on the one you want to edit.

    • @soumyaranjansamalkiit
      @soumyaranjansamalkiit 19 дней назад

      @@AnaGuerra03 Help me, i am facing the same issue after doing every step

  • @SanathM-dg6xp
    @SanathM-dg6xp 7 месяцев назад

    Where to type the second step, please someone help!

    • @AnaGuerra03
      @AnaGuerra03 7 месяцев назад +1

      hi, do you still need help?

    • @SanathM-dg6xp
      @SanathM-dg6xp 7 месяцев назад

      Yes please

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

      @@SanathM-dg6xp step 1: go to the terminal
      step 2: write xcode-select --version
      step 3: write cpp -v.
      step 4:copy the path
      step 5: open new terminal (left click on the terminal icon in the task bar and then click on new window)
      step 6: paste the path--> remember to put cd . example: cd /Library/....
      step 7: run ls [to check what is inside] verify with the video it is similar to what you have
      step 8: run sud mkdir bits [to create bits file]
      step 9: run ls
      step 10:write computer password, the one you use to login to your computer.
      step 11: again write ls
      step 12: write cd bits
      step 13: run sudo vim mkdir stdc++.h (verify if i wrote it correctly)
      step 14: go to the description of the video. there is a link, open it, copy the content and paste it in the terminal that was created. after that if there a message of insert on the bottom click esc. so you can write the :wq, in case of not having a message of insert on the bottom you are good to go and can write :wq without pressing esc. [note if you press esc either way it wont affect anything].
      IMPORTANT THINGS I WOULD HAVE LIKED TO KNOW: If you commit an error, meaning you wrote something in the stdc++h. file and you want to delete but dont know because it is not letting you. Do this: with the arrow keys (the ones in bottom of the right shift) navigate to the section or line you want to eliminate, once there then press the key i then it will help you eliminate what ever you wrote by accident. when you want you to get out of the terminal because you are done press esc key and then :wq and that is it.
      if you have a hard time let me know and i will gladly be of help. after that go back to the terminal you were using and write down ls and finally quit vscode and run it back. it should work. let me know if you have any questions. :)

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

      part 1:
      step 1: go to the terminal
      step 2: write xcode-select --version
      step 3: write cpp -v.
      step 4:copy the path
      step 5: open new terminal (left click on the terminal icon in the task bar and then click on new window)
      step 6: paste the path--> remember to put cd . example: cd /Library/....
      @@SanathM-dg6xp

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

      part 2:
      step 7: run ls [to check what is inside] verify with the video it is similar to what you have
      step 8: run sud mkdir bits [to create bits file]
      step 9: run ls
      step 10:write computer password, the one you use to login to your computer.
      step 11: again write ls
      step 12: write cd bits
      step 13: run sudo vim mkdir stdc++.h (verify if i wrote it correctly)
      step 14: go to the description of the video. there is a link, open it, copy the content and paste it in the terminal that was created. after that if there a message of insert on the bottom click esc. so you can write the :wq, in case of not having a message of insert on the bottom you are good to go and can write :wq without pressing esc. [note if you press esc either way it wont affect anything].
      @@SanathM-dg6xp

  • @jirkadolezal8127
    @jirkadolezal8127 11 месяцев назад

    👍👍👍👍👍👍👍👍👍👍👍👍

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

    nice voice!

  • @SamidhaSingh-me8rc
    @SamidhaSingh-me8rc 4 месяца назад

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

    Oo women ☕️ thoda simple language me sikhao or easy karo yitne meto puri c language sikh lu 👤

  • @rohanmalviya5266
    @rohanmalviya5266 7 месяцев назад +1

    thank you!

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

    where to type the second step