【问题标题】:'make' command is not working within terminal VScode“make”命令在终端 VScode 中不起作用
【发布时间】:2020-08-27 05:02:22
【问题描述】:

我觉得这是一个非常微不足道的问题,我一生都无法弄清楚我的 VScode 发生了什么。

that the path is correct and try again.
At line:1 char:1
+ make
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (make:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 

Suggestion [3,General]: The command make was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\make". See "get-help about_Command_Precedence" for more details.

我只是想将两个文件一起编译以使它们工作。它们分别编译和执行,但是当我在 VS 的终端中使用“make”命令时,它会出现此错误。 我相信我的 makefile 设置正确,完全按照我的教授视频进行操作,并且它工作正常。

任何指针??

【问题讨论】:

  • 指针?错误本身给你的指针怎么样?具体来说,If you trust this command, instead type: ".\make".

标签: c++ visual-studio-code makefile command-line terminal


【解决方案1】:

正如消息所说:找不到make命令!

  1. 只需键入 make 并按 Enter,即可确保您的 make 命令确实存在。
  2. 如果不存在,请同时安装:build-essentials 和 make using pip/conda/npm/npx

这些是使目标工作的主要规则!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-10-17
    • 2021-06-06
    • 2015-03-14
    • 2018-09-01
    • 2014-05-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多