DEV Community

Discussion on: [Step By Step Guide] How to set up visual studio code for C and C++ programming 2021.

Collapse
 
reihadi profile image
Reihane

Thank you!
when I run my code, I see this error:

'g++' is not recognized as an internal or external command,
operable program or batch file.

What am I supposed to do?

Collapse
 
godangler profile image
Gabriella Dangler • Edited

Hi! Here years later and I get this same error. Did you ever figure out the problem?

[EDIT:] Restarted VSC and saved my file - now my code runs fine! :)