我正在尝试将Visual Studio Code设置为与C ++和Mingw一起使用。我正在使用教程https://code.visualstudio.com/docs/cpp/config-mingw。如本教程所述,当我使用ctrl + shift + b构建helloworld.cpp时,出现错误消息:
> Executing task: g++ -g -o helloworld helloworld.cpp <
g++ : The term 'g++' 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.
At line:1 char:1
+ g++ -g -o helloworld helloworld.cpp
+ ~~~
+ CategoryInfo : ObjectNotFound: (g++:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
问题出在哪里?我对bash的配置是否错误?