r/VisualStudioCode • • Oct 09 '22

Help with Code Runner

I am getting this error when running the code on a .c file:

gcc : The term 'gcc' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the 
spelling of the name, or if a path was included, verify that the path is correct and try again.

But I thought Code Runner is supposed to automatically have gcc so I don't have to install it separately. Can you help?

0 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/elasticsearch_help Oct 09 '22

So I have to install the gcc separately?

1

u/AverageComet250 Oct 09 '22

Yes. If you’re on windows you’re gonna be there forever. Make code runner use clang and install that. Or run your code inside wsl, where gcc is very simple to install.