如何在eclipse(C++)中设置makefile?

Ami*_*hum 6 c++ windows makefile eclipse-cdt

我在Eclipse中有一个项目,我想使用自己的makefile.我去了

project - > properties - > C/C++ Build

并取消选中"自动生成Makfiles".我有一个Makefile在项目基础dir中命名的makefile ,它只包含:

all: 
    g++ *.cpp -o Simulator.exe
Run Code Online (Sandbox Code Playgroud)

当我尝试构建时,我收到以下错误:

为项目CacheOptimization构建配置MinGW GCC

(无法运行程序"make":启动失败)

我该如何解决这个问题并让eclipse编译我的代码?

cri*_*tis 2

您可能没有正确配置 MINGW,并且 Eclipse 无法运行“make”。这可能有用:设置编译器