Reputation: 11
Beginner Noob Question, Why doesn't my VSC recognize #include <stdio.h> in C programming? I have Microsoft C/C++ extension downloaded and everything.I created a new directory and folder and started to write the code but got the error on #include. I tried reinstalling VSC. I am starting my degree from square one this fall term in CET. Wanted to get a head start and brush up on C again. I cant even printf because for some reason #include <stdio.h> isn't recognized. It gives me intellisense errors and red underlines #include <stdio.h> What do I do to start programming in C and have the code compile and execute appropriately in VSC? Do I need to specify the C>Cpp Default Intellisense Mode or edit compiler path? Do I need to specify direct path in json settings or edit something in the configuration settings?? I saw some video saying I must download mingw64? Is that a compiler? Why would VSC and the C/C++ extension not include all that you need? Why doesn't it just download mingw64 by default if it is needed to write in C on VSC. I did review similar questions but feel a newer thread needs to be created so other noobs like me can git gud quicker. I know this shouldn't stump me so, Sorry for the beginner question. I am a beginner and finally downloaded VSC, before I used an easy in-browser cloud based VSC. I am asking for a solution but, also more so to understand the why/what is going on. Other posts lack the explanation and just provide possible yet vague one sentence solutions.
Need #include <stdio.h> to not have error so I can compile and run simple code. Just trying to warm up with some printf's and if else statements and what have you.
Upvotes: 0
Views: 164