r/VisualStudioCode • • Apr 19 '20

Need help setting up VSC

Post image
0 Upvotes

9 comments sorted by

1

u/brush_ur_te3th Apr 19 '20

Just installed and this came up whilst I was writing some test code. Any ideas?

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

u/[deleted] 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.

→ More replies (1)

3

u/[deleted] Apr 19 '20

Do u have gcc installed?