找不到Makefile的入口点。

5

我已经安装了VSCode,但一直显示这个提示(位于图片底部右侧)。我已经为您附上了截图。有人知道如何修复吗?

enter image description here


1
你是否正在使用多根工作区?https://github.com/microsoft/vscode-makefile-tools/issues/90 - hkievet
1个回答

5

有如下的代码结构:

myProject
  |
  |_ component1
     |_ src: cpp files
     |_ Makefile
  |_ component2
     |_ src: cpp files
     |_ Makefile

我通过在“./myProject”下创建以下内容的 Makefile 来解决了这个问题:
MAKE := make
all:
    $(MAKE) -C ./component1
    $(MAKE) -C ./component2

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接