I installed MinGW and MSYS on my Windows 7 computer. I added C:\Program Files (x86)\MinGW\bin
to my path. Commands such as gcc
and g++
work, but make
does not. I looked in the directory, and there is no executable called make
, even though I installed all components. There is a file called mingw32-make
. There are also other files prefixed with mingw32-
, such as c++, g++, gcc, gcc-4.6.1, and gfortran. However, there is a make
in C:\Program Files (x86)\MinGW\msys\1.0\bin
.
If I open the MinGW Shell and type in make
, make executes. However, it does not execute from the Windows terminal.
Is this intentional, or could I be missing other executables as well? Should I just add C:\Program Files (x86)\MinGW\msys\1.0\bin
to my path?
msys2 vs msys vs msysgit MinGW doesn't provide a linux-like environment, that is MSYS (2) and/or Cygwin Cygwin is an attempt to create a complete UNIX/POSIX environment on Windows. MinGW is a C/C++ compiler suite which allows you to create Windows executables - you only
MinGW is a C/C++ compiler suite which allows you to create Windows executables - you only need the normal MSVC runtimes, which are part of any normal Microsoft Windows installation. MinGW provides headers and libraries so that GCC (a compiler suite, not just a "unix/linux compiler") can be built and used against the Windows C runtime.
It says in the documentation for the C/C++ part of NetBeans that it will only work with MSYS's make, not MinGW's make. I wanted to know the difference between the two, so I Googled it and came up with this question which says there are two different makes included with MinGW, mingw32-make (MinGW's make) and make (MSYS's make).
Open MinGW Installer. Select Basic Setup, navigate to Packages and Right click on “mingw-developer-toolkit-bin”, “mingw32-base-bin” and “msys-base-bin” Packages and select Mark for Installation. 1.2.2 Navigate to the Top left corner and Left click on Installation then click Apply Changes.
Yup, add the msys bin directory to your path (after MinGW's bin dir). That's exactly what the MinGW shell does and why it works there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With