How to Fix Include Path Error in C/C++ Files using Visual Studio Code

Поділитися
Вставка
  • Опубліковано 30 лип 2024
  • ► Free Document Proofreading: grammarly.go2cloud.org/SH3YB
    ***************************
    How to fix vscode error: #include errors detected. Please update your includePath.
    ***************************
    Free Document Proofreading
    Grammarly: grammarly.go2cloud.org/SH3YB
    *************************** .
    ***********************************
    🔥 Complete Udemy Courses :
    Build E-commerce Web Application using ASP.NET Core : www.udemy.com/course/aspnet-c...
    Build E-commerce Web API using ASP.NET Core : www.udemy.com/course/build-as...
    Build E-commerce Web Application using React JS : www.udemy.com/course/build-co...
    ⬇️ Free Document Proofreading ⬇️
    ► Grammarly : grammarly.go2cloud.org/SH3YB

КОМЕНТАРІ • 157

  • @Dreeyandree
    @Dreeyandree 2 роки тому +85

    finally someone who speaks english
    thank you sir

    • @abdessamad_5460
      @abdessamad_5460 Рік тому +3

      How I can have the folder that he put
      I can't understand
      Please??

    • @AutumnRainBot
      @AutumnRainBot Рік тому +1

      @@abdessamad_5460 Okay , simply create a folder named : Include , in your project directory and the in this folder just drag and drop the headers you need and now you will be able to include them :)

    • @amiliarek7521
      @amiliarek7521 Рік тому

      @@AutumnRainBot how do I drag and drop the headers please?

  • @griff2162
    @griff2162 Рік тому +29

    I've wasted whole my day trying to figure it out before I came across your solution. That's the only thing that actually worked. Thank you so much. ❤

  • @gregwoolley
    @gregwoolley 8 місяців тому +13

    This is weird. I did exactly as you've said, I have #include in main.cpp and I've set the "c_cpp_properties.json" includePath to "C:\\mingw64 - v8.1.0\\opt\\include" but still get complier error:- "C:\mingw64\bin\cpp.exe -fdiagnostics-color=always -g C:\myApp\main.cpp -o C:\myApp\main.exe C:\myApp\main.cpp:5:10: fatal error: openssl/aes.h: No such file or directory. No matter what I've tried I continue to get this error... me confused!

    • @Darkside13139
      @Darkside13139 7 місяців тому +1

      same , did u find a solution

  • @DJTheKing99
    @DJTheKing99 Рік тому +4

    Thank you so much! I have read so many articles that were no help, but this solution finally fixed the issue!

  • @alidastjerdi7925
    @alidastjerdi7925 11 місяців тому +2

    It was great. Between all the solutions that I tried, Yours was the only one that actually worked. Thank you so much!

  • @Adri_noseua
    @Adri_noseua Рік тому +23

    what can I do if my opt folder and include folder is empty?

    • @I.Saylor
      @I.Saylor 15 днів тому

      Did u find the answer?

  • @SwillMith16
    @SwillMith16 2 роки тому

    It is telling me that the files cannot be found when doing the section involving the lib folder :(

  • @ryanpaye454
    @ryanpaye454 7 днів тому

    How do I add my compiler path effectively with correct path syntax for VS Code? I am using arm-none-eabi-gcc as my compiler When I copied the location as "c:\arm\arm-none-eabi\13.3.Rel1\bin\arm-none-eabi-gcc.exe" it said I had an invalid escape character in the string. What is going on here?

  • @tytytyty504
    @tytytyty504 Рік тому

    See mine looks just like that but for some reason VS says it "no such file or directory" for #include and I have tried so many things

  • @wesleyso0
    @wesleyso0 2 роки тому +3

    Awesome video! Thanks for your help!

  • @jasserlabiadh
    @jasserlabiadh Рік тому +1

    i knew you're Tunisian from the English accent. THANKS BROTHER

  • @DxBang3D
    @DxBang3D Рік тому

    I just kept getting an error message every time I did CTRL+SHIFT+B, .... then I noticed that I should press CTRL+ALT+B instead....

  • @ovelhanerd
    @ovelhanerd Рік тому

    Thank you. Helped me a lot!

  • @phdgamer798
    @phdgamer798 Рік тому +1

    finally, it's done...! Thanks

  • @johnvonhorn2942
    @johnvonhorn2942 Рік тому +7

    Thank you, sir, I'm now ready to say, "Hello World" :)

  • @Akshayyy554
    @Akshayyy554 22 дні тому

    After typing gcc main.c
    Mine is again showing fatal error even after saving..what should I do???

  • @mustafaibrahimi2143
    @mustafaibrahimi2143 2 роки тому +1

    i donot know what i do i still have same problem when i do same thing i have erro when i install mingw-w64 say "the file has been downloaded incorrectly !" so please i need your help what i try it is about 5 days i try but i cannot ssolution still please help me ?

    • @milescuizon743
      @milescuizon743 2 роки тому +1

      Same mister. It gives headache I've almost punch my laptop

  • @oxymore13
    @oxymore13 Рік тому

    What to do if I have this issue from Ubuntu ?

  • @aliuokeowo9605
    @aliuokeowo9605 Рік тому +4

    i couldn't find the Ming-gw 64 in my window(C:)

  • @faiqmuztaba
    @faiqmuztaba 10 місяців тому

    why i cant run when i put on vs code?

  • @aminehamoura1673
    @aminehamoura1673 Рік тому

    It's not the same method on Mac is it?

  • @jonnathanhilliard5684
    @jonnathanhilliard5684 9 місяців тому +3

    I don't have "edit include path" option, only fix with copilot option.... which does not fix anything. any ideas please? I tried turning off copilot, doesn't help.

    • @amritanand2938
      @amritanand2938 2 місяці тому

      Same problem what can I do

    • @MartinScherpa
      @MartinScherpa 7 днів тому

      maybe you don't have the intellisense plugin installed

  • @sampleaccount2471
    @sampleaccount2471 21 день тому

    Thank you! You're a lifesaver!

  • @elliot3147
    @elliot3147 2 роки тому +3

    Thank you, this helped so much.

  • @pato8021
    @pato8021 2 роки тому +1

    What about it cs50?

  • @jadepearl2378
    @jadepearl2378 9 місяців тому +1

    Idk where you got that folder that you clicked when trying to determine the includePath

    • @JemstoneGames
      @JemstoneGames 5 місяців тому +1

      Same. I have a whole heap of mingw-64 folders with longer names, but no just mingw-64 folder, I'm confused.

  • @volodymyrsamborskyi7531
    @volodymyrsamborskyi7531 2 роки тому +14

    I don't have include folder at all, what should I do?

    • @yugpatel982
      @yugpatel982 2 роки тому +1

      just create it normally

    • @cedricarquizabaran7336
      @cedricarquizabaran7336 Рік тому

      i think u need to re download mingw-w64

    • @eue155
      @eue155 Рік тому +3

      @@cedricarquizabaran7336 how can I download mingw64

  • @rajeswarisandhu556
    @rajeswarisandhu556 Рік тому +2

    it says open a folder first to include path when i click on edit can somone help?

    • @jhonrovic7563
      @jhonrovic7563 Рік тому

      same concern

    • @bagadbilla7385
      @bagadbilla7385 Рік тому

      Just make a folder somewhere where u want to store ur codes and select it, worked for me
      Rest i can't find that mingw folder any help?

  • @shortscomedy855
    @shortscomedy855 Рік тому

    In vs code not showing edit includ path please someone help me

  • @SolidPayne
    @SolidPayne Рік тому +48

    I already hate c++, why is this not automatically done for you? It immediately deters beginners from c++. Ridiculous, I’d expect better from programmers.

    • @fortunebwalya-lv8fb
      @fortunebwalya-lv8fb 5 місяців тому +4

      I'm a beginner and I just faced the same issue.... honestly I give up

    • @devonharvey8414
      @devonharvey8414 4 місяці тому

      @@fortunebwalya-lv8fbdon’t give up bro, I face this problem multiple times but now I’m hearing because I was building a neural network and my code wasn’t compiling, don’t let this discourage 💪🏾

    • @MartinScherpa
      @MartinScherpa 7 днів тому

      For begginers, vscode sucks totally, it's super complicated to setup with a compiler because it's not an IDE (Integrated Development Enviroment, such as DevC or Codeblocks), it's a text editor, so setting it up is very hard without experience.

    • @shababkanon7387
      @shababkanon7387 6 днів тому

      Your not worthy

  • @FemboiLover69
    @FemboiLover69 2 роки тому

    standart?

  • @aldoarcos69
    @aldoarcos69 Рік тому

    Does it work on linux?

  • @frenchmike
    @frenchmike 2 роки тому +11

    I have the same error on a mac with #include, where do I find the path to that on a mac?

    • @Lycoriste
      @Lycoriste 2 роки тому +1

      sameeeee did u find how to fix it?

    • @JumpStar10
      @JumpStar10 2 роки тому

      ​@@Lycoriste Did you fix this too?

    • @lostinparadification
      @lostinparadification 2 роки тому

      @@JumpStar10 Try searching for iostream in the mingw folder

    • @redminote6607
      @redminote6607 2 роки тому

      Same did u fixed it?

    • @Lycoriste
      @Lycoriste 2 роки тому

      @@JumpStar10 nope pls send help

  • @allanstuart9606
    @allanstuart9606 Рік тому +2

    in settings search for
    C_Cpp.default.includePath
    add item
    fill with headers .h directory

  • @shahriarmahmudimran5085
    @shahriarmahmudimran5085 2 роки тому +1

    in my compiler it shows that #include(stdio.h), is also wrong ,how can I fix it ?

    • @BoostMyTool
      @BoostMyTool  2 роки тому +3

      It is #include
      If you still have an error, maybe you did not install mingw. This video shows how to install mingw: ua-cam.com/video/qkjcJRH7FAk/v-deo.html - This video shows how to install msys2/mingw: ua-cam.com/video/OwQobefF-iE/v-deo.html

    • @brendongong2461
      @brendongong2461 2 роки тому

      do you still install mingW if you have a Mac?

  • @larsverschoor
    @larsverschoor Рік тому +2

    1:27 i only have bin, include, and lib. Not opt i am kind of starting to give up on this cpp thing. I can't get this to work

  • @daverzeacademy
    @daverzeacademy 3 місяці тому

    does this work for windows

  • @rid_7787
    @rid_7787 Рік тому +1

    It shows edit compilerpath instead of includepath what do I do

  • @scarysticks66
    @scarysticks66 Рік тому

    and how can i solve this in ubuntu?

  • @lucaabg3796
    @lucaabg3796 2 роки тому

    Hey man :( when i turn on my pc it show a white screen if you know how to fix it can you help me

    • @BoostMyTool
      @BoostMyTool  2 роки тому +1

      Unfortunately, I cannot help you with this type of errors. It may depend on the brand of the computer or on the operating system. Also it can occur due to a hardware problem which is beyond my knowledge about software issues. If you have any error message, it can be helpful for me to know better the problem, and maybe to find a solution.

    • @lucaabg3796
      @lucaabg3796 2 роки тому

      But when i turn it on it put me "boot menu" and it put me kingstone idk what and setup pls if you can make a vidro it will be help

    • @lucaabg3796
      @lucaabg3796 2 роки тому

      I tried everyone it doesnt work

    • @BoostMyTool
      @BoostMyTool  2 роки тому

      @@lucaabg3796 Unfortunately, I have no idea about this problem. I think you have a problem of hard disk. Maybe you need to take it to the after-sales service.

    • @lucaabg3796
      @lucaabg3796 2 роки тому +1

      Sad and thank you

  • @madgepereira2891
    @madgepereira2891 Рік тому +4

    I don't have mingw downloaded. Is it necessary to have it downloaded? Or can I just try with some other file present?

    • @primo6622
      @primo6622 Рік тому

      me too :( i have already downloaded it but there's no sub-folder as in the video..

  • @RG9SiRechinii
    @RG9SiRechinii 2 роки тому +1

    where can i download that mingw folder??

  • @zeeza7663
    @zeeza7663 Рік тому +20

    I don't have a folder called mingw-w64. Can someone help please?

  • @asidefacil358
    @asidefacil358 Рік тому

    macbook?

  • @trananhvu797
    @trananhvu797 Рік тому +1

    pls why i haven't folder mingw-w64

  • @hoang_zaeyker4741
    @hoang_zaeyker4741 Рік тому

    why i don't have opt file

  • @muvejshaikh4352
    @muvejshaikh4352 7 місяців тому +1

    It is not working 😭 some body help me 😞

  • @lavocedeteha2269
    @lavocedeteha2269 2 роки тому +10

    I can't find the folder can anyone help me??

  • @Scriabinfan593
    @Scriabinfan593 Рік тому +1

    Nothing is working for me. This is now the 7th video I've watched. I'm still getting the "no such file or directory" error.

  • @octaviotastico
    @octaviotastico Рік тому

    Thank you so much brooo

  • @rafikbaaziz8803
    @rafikbaaziz8803 Рік тому +1

    raby m3aak monsieur merci

  • @TitanWari
    @TitanWari Рік тому

    my include file is empty @@

  • @tanmaymishra1371
    @tanmaymishra1371 Рік тому

    Thank you so much👍🏻

  • @amservis8050
    @amservis8050 2 роки тому

    thank you mr......goodluck

  • @svnbeats6700
    @svnbeats6700 7 місяців тому

    it didnt work for me sadly

  • @samarthghule547
    @samarthghule547 Рік тому +3

    It works👍

  • @KonnarakYahath
    @KonnarakYahath 2 місяці тому

    Helpful video❤

  • @filipmatejov
    @filipmatejov Рік тому

    thank you my friend

  • @magnets8264
    @magnets8264 4 місяці тому

    Thank you very much sir

  • @mayanksen3236
    @mayanksen3236 10 місяців тому

    Ming GW is not working 😭

  • @kvnM9009
    @kvnM9009 Рік тому

    Thanks you so much

  • @user-uy3or9ii4n
    @user-uy3or9ii4n 10 місяців тому

    Thank you from Russia! Very helpful!

  • @Name-bb8wo
    @Name-bb8wo 9 місяців тому

    dont have edit include path in options

  • @officialp283
    @officialp283 Рік тому +1

    no wonder people are moving away from cpp

  • @m.rahmat4522
    @m.rahmat4522 10 місяців тому

    Thanks you very much

  • @LuisFernando-wm5rg
    @LuisFernando-wm5rg 2 роки тому +1

    Thank you very much u.u

  • @nedwdw730
    @nedwdw730 Рік тому

    hi i need MinGW-w64

  • @neilkamath1
    @neilkamath1 2 місяці тому

    THANK YOU

  • @kod0751
    @kod0751 2 роки тому +2

    Op video

  • @user-nj4kd8mk2y
    @user-nj4kd8mk2y 10 місяців тому

    Thanks alot.

  • @ayushvishwakarma-up9lq
    @ayushvishwakarma-up9lq 6 місяців тому

    thank you sir ❤

  • @user-ll2hv6md9b
    @user-ll2hv6md9b 11 місяців тому +1

    can't find the opt. help pls

  • @lordknepper4544
    @lordknepper4544 Рік тому

    did not fix the issue

  • @axellondas6297
    @axellondas6297 Рік тому

    thank you

  • @atchau6466
    @atchau6466 9 місяців тому

    easy to understand. thank u

  • @mzansiessence1544
    @mzansiessence1544 Рік тому

    Thanks

  • @AlvaroEduardoVasquezVasquez
    @AlvaroEduardoVasquezVasquez 8 місяців тому

    I love your koku

  • @sarojpoudel7345
    @sarojpoudel7345 2 роки тому

    dictator 2.0 found out

  • @picnicbros
    @picnicbros Рік тому

    life saver

  • @molezinif
    @molezinif Рік тому

    i love you.

  • @CliveMashiloane
    @CliveMashiloane Рік тому

    Me too

  • @adamhighfield7264
    @adamhighfield7264 5 місяців тому

    I love u

  • @dude_no368
    @dude_no368 Рік тому

    I can't

  • @algirdasltu1389
    @algirdasltu1389 Місяць тому

    i have these errors with the standart library kill me lol

  • @SebastianAlexiou
    @SebastianAlexiou 2 місяці тому

    i think i love you

  • @quocanalexdjentertaiment99996
    @quocanalexdjentertaiment99996 5 місяців тому

    Hello

  • @quocanalexdjentertaiment99996
    @quocanalexdjentertaiment99996 5 місяців тому

    Hello everybody,i comment one

  • @Bobo-jd4kx
    @Bobo-jd4kx 6 місяців тому

    this deleted my entire projects code

  • @heyy.Abhishek
    @heyy.Abhishek 4 місяці тому

    Ee tutul putul kya kar rha👽

  • @niknik6718
    @niknik6718 Рік тому

    This doesn´t work, don´t try this and don´t trust the good reviews, it you will only waste your time.

    • @nabilff6415
      @nabilff6415 11 місяців тому

      What can i do please

  • @emreyaln7780
    @emreyaln7780 Рік тому

    working on windows NAAAAAAAAH I WILL NEVER DO THAT MISTAKE AGAIN

  • @Skindust.007..
    @Skindust.007.. Рік тому +1

    I don't have include folder at all. What should I do then?