我有一个包含这段代码的 makefile
all: hello.exe
hello.exe: hello.o
gcc -o hello.exe hello.o
hello.o: hello.c
gcc -c hello.c
clean:
rm hello.o hello.exe
当我写这个命令时
mingh32-make
我明白了:
mingw32-make : *** No targets specified and no makefile found. Stop.
最佳答案
您可以通过两种方式解决这个问题。
- 正如评论者所说,将您的文件从
makefile.txt
重命名为makefile
。 - 另一种方法,使用
mingw32-make -f makefile.txt
关于生成文件错误 "*** No target specified and no makefile found.stop.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28943942/