# Makefile
run: a.exe
start cmd /c "a.exe & pause"
a.exe: main.cpp Makefile
g++ main.cpp
此MakeFile与我的旧版本" 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.
当我使用makefile运行新的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制作的Mingw,然后去做Windows下载网页上的最后一个版本,目前为3.81,很可能很可能不会永远更新它。