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
This was the most helpful video for Mac users with the same problem. Thanks a lot
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.
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
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🙏🧐.
Thank you so much.After so many hit and trial finally this worked
thank you so much . I was stuck with the same error and your solution worked!!
I don't see the stdc++.h file anywhere in the description
Thank you very much this video was very helpful. I finally have this issue fixed and I can start programming again.
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
THANK YOU SO SO MUCH. It was the most helpful video!
Thank you so much! This totally helped me!
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
Does not work
It works, thanks !!
❤ 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! ❤
did you solve the problem?
where to write cd /Library/Developer/CommandLineTools/usr/include this command
thanks a lot , really helpful
I am unable to fix conio.h error. Please help me.
thank you!
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
i have a same question
i have the same problem but with my gcc compiler. The conio.h include doesn't work. Who can help me please ?
Thanks for your sharing
still not working
Did you find any solution?
@@vish_prsd did you?
@@giorgiorkoshneli1256 did you?
Thank You Ji ❤
where to apply second step
thank you mam 😄
do I need install xcode?
The site is not opening please help
Thank you madam
not fixed , can anyone help ?
helpful! ❤️
why this is not working, I do the exactly same things as you tell.
what is wrong? what step isnt it working?
tHANK YOU SOO. MUCHHHHHHHHHH
1:09 How to use this screen? Completely incomprehensible for beginners
still need help?
i do@@AnaGuerra03
@@AnaGuerra03 yes please how to jump into this specific terminal window!!!!
@@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.
@@AnaGuerra03 Help me, i am facing the same issue after doing every step
Where to type the second step, please someone help!
hi, do you still need help?
Yes please
@@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. :)
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
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
👍👍👍👍👍👍👍👍👍👍👍👍
nice voice!
Oo women ☕️ thoda simple language me sikhao or easy karo yitne meto puri c language sikh lu 👤
I feel you bro
thank you!
where to type the second step