'gcc is added in path variables but not working in vs code

The path in path variables is : C:\msys64\mingw64\bin\

gcc is installed at that path

When gcc is typed in normal Command prompt, it shows:

gcc: fatal error: no input files compilation terminated. which is good.

But when gcc is typed in vs code's command prompt, the error message is:

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. Even though I've added gcc in the path variables.

The error message of command promptThe error message of vs code



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source