include errors detected. please update your includepath SOLVED visual studio code C and C++

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone in this video I will be showing you  how to solve the issue # include errors detected   please update your input path So This error can  come in both C and C plus plus and the solution   is common for both the languages so let's get  started so the first thing what you need to do   is you need to just click over here just place  your cursor over here and click it and you'll   be having this bulb like icon so just click  it and you'll be having this edit into path   setting and before clicking this option you need  to open your C or C plus plus program in a folder   so I have just opened the file so if I just now  click it I'll be having this open a folder list   to edit configurations so for that I will just  go here and create a new folder let me name it as   CPP Pro something like that and  I will just put my file inside it and again I will go to my visual  studio code and go to Open folder and I will just now select it so again just place your cursor over here and  we'll be having this icon click it and just click   edit into it path setting so this time we will  be taken to C slash C plus plus configurations   we won't be getting that pop-up now and in this  you'll be having this intellisense configurations   and here after this underlying word you'll  be having this C CPP properties.json file   so just hover over it and just click it and  you'll be getting this dot Json file opened   and here we need to make two changes the first  change is we need to change this include path   so for that what we need to do is you need to  go to the location where we have installed Min   GW so I am having Min GW installed in C mingw  in some cases it will be present in C program   files Min GW so you need to check the path where  you have installed this mingw so I will just go   into mine and you need to go to include and you  need to just copy this path it's C mingw include   and let me just now go and I will just paste  it over here within double quotes and all the   single slash should be changed to double slash  so otherwise it will throw an error yeah that is   fine and now let me just save it and after this  we can just change the compiler path so for that   we can just go to C or C plus plus configurations  and if I just now scroll down so here you can see   I'm having this compiler path over here so what  I can do is I can just press this down arrow icon   and I will be going with G plus plus dot exe  because I am going to do this for C plus plus   programming if you are doing for C programming you  need to select GCC so since I am doing C plus plus   I will select G plus plus so I'll just click it  yeah so and it will automatically getting changed   over here as well so I'm having another issue  over here which is this intellisense so for that   let's just scroll down so here you can see it  is not computable so for this you can just go   with the default it solves the issue or else you  can go with this Clang one yeah this one so both   the things solves the issue I will just go with  the default one yeah so now you can see I'm not   having that yellow color line so it is now fine I  guess so save it important thing after doing all   the changes Ctrl s over here so now if I just go  to my C++ program again yeah so this time you can   see I am not getting any errors and if I just now  go to my problems there won't be any problems and   if I now go to my terminal and I will do G plus  plus what is my program name it is new Pro dot CPP so I need to get the output as hello  so I'll just type a and hit enter   so here you can see it is running successfully  and another thing that I wanted to tell you was   you will be getting this dot vs code folder  within your C plus plus project folder so   I would recommend you to always use this  particular folder for creating or running   your CPP programs so thats it this is  how you solve the error and mine is a   programming Channel I have done many videos  in C C plus plus Java python node.js react.js   mongodb MySQL so do check other videos of  my channel subscribe me thanks for watching
Info
Channel: United Top Tech
Views: 130,163
Rating: undefined out of 5
Keywords: include errors detected. please update your include path, include errors detected vscode c++
Id: LE9iJ9TpZlU
Channel Id: undefined
Length: 4min 34sec (274 seconds)
Published: Tue Oct 11 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.