Visual Studio Code 错误 -“无法识别术语‘make.exe’”

问题描述 投票:0回答:1

虽然我已经安装了“make”并且它的目录是全局的(我可以从cmd和PS执行它)。在 vsc 终端中执行任何 make 时,我收到错误:

PS C:\Users\b_wik\Dokumenty\Coding\PersProj\tempAi> make
make : The term 'make' 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
+ make
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (make:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

我已经安装了vsc扩展来操作make“Makefile Tools”,但我是初学者,我不太明白。

c++ visual-studio-code makefile
1个回答
0
投票

解决了。

很简单“你重新启动了吗?”案件。如前所述,全局目录更改需要重新启动电脑才能工作。

© www.soinside.com 2019 - 2024. All rights reserved.