如何在Windows上使用GNU Make? [英] How to use GNU Make on Windows?
问题描述
我安装了MinGW和MSYS,将 C:\MinGW\bin
添加到 PATH
,但我仍然可以在Windows上运行Makefile cmd
。我想运行cmd.exe和类型,例如, make all
但是我的cmd说没有这样的命令。
I installed MinGW and MSYS, added C:\MinGW\bin
to PATH
but I still can't run Makefile on Windows' cmd
. I would like to run cmd.exe and there type, for example, make all
but my cmd says that there is no such command.
我该怎么办?我不想使用MSYS shell,这不是重点。任何想法如何使用GNU Make在Windows cmd,我可以在Ubuntu中做到吗?我对 Cygwin
不感兴趣。
What should I do? I don't want to use MSYS shell, that's not the point. Any ideas how to use GNU Make in Windows cmd as I can do it in Ubuntu? I'm not interested in Cygwin
.
推荐答案
它工作:
copy c:\MinGW\bin\mingw32-make.exe c:\MinGW\bin\make.exe
然后我可以打开命令提示符并输入make: / p>
Then I am able to open a command prompt and type make:
C:\Users\Dell>make
make: *** No targets specified and no makefile found. Stop.
这意味着它现在正在工作!
Which means it's working now!
这篇关于如何在Windows上使用GNU Make?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!