# Makefile
run: a.exe
start cmd /c "a.exe & pause"
a.exe: main.cpp Makefile
g++ main.cpp
此生成的文件和我的老版“的mingw32-的make.exe”效果很好,该版本是当今cmd命令启动无法与新版本的mingw32-make.exe一起使用?
> mingw32-make -v
GNU Make 3.82.90
Built for i686-pc-mingw32
Copyright (C) 1988-2012 Free Software Foundation, Inc.
etc.
我认识了一个新的软件叫mysy2,我下载的mingw32最后用它。和文件makefile,不再工作。版本信息是:
> mingw32-make -v
GNU Make 4.1.90
Built for Windows32
Copyright (C) 1988-2014 Free Software Foundation, Inc.
etc.
当我运行与生成文件的新的mingw32-make时,只是说
> mingw32-make
start cmd /c "a.exe & pause"
process_begin: CreateProcess(NULL, start cmd /c "a.exe & pause", ...) failed.
make (e=2): 系统找不到指定的文件。#it is "system can't find the file" in chinese
Makefile:2: recipe for target 'run' failed
make: *** [run] Error 2
谁?
想知道为什么你总是使用GNU make的预发布版本而不是最终版本(在GNU make中,所有版本的x.y.9z都被认为是alpha/beta/release候选版本)?你在哪里下载这些? – MadScientist
@MadScientist第一部分是“用mingw for windows代码块”的一部分,codeblocks是一个跨平台的c/C++ IDE。第二个是在msys2下载的,msys2是windows上的“pacman + bash”。 –