1
u/L0STM4G3 Apr 19 '20
Can you show your code, too? We only have half the story right now.
1
u/brush_ur_te3th Apr 19 '20
The code is just
include <stdio.h>
Int main() { printf(" "); Return 0; }
3
u/L0STM4G3 Apr 19 '20
I haven't worked with C/C++ recently, but have you set up your compiler? It's possible it can't find the libraries at whatever location it thinks they should be at.
1
u/brush_ur_te3th Apr 20 '20
How do I do that? All I've done is install vsc. Install C extension and that's it.
1
Apr 27 '20
Maybe you already figured this out but You need to press cm shift p and you will see the command pallet. Then look for c/cpp change properties and choose the Json one. Then change the include path to where the standard header files are located on your computer
1
u/brush_ur_te3th Apr 27 '20
Hi, thanks for your reply. Where would I locate where my header files are? Is that just where vsc was installed? Thanks.
1
Apr 27 '20
Uhm I use a Mac and I don’t know where they are located on windows. I think you can find it on google. If not you can ask me and I will look for them. I use vscode a lot for c++ and it’s quite difficult to get things running because it is not an ide. If you have any questions you can ask me. If you want I can share my settings
3
1
u/brush_ur_te3th Apr 19 '20
Just installed and this came up whilst I was writing some test code. Any ideas?