The problem with mingw

I have a little problem with make and mingw. I usually use Linux, and I'm not very good at how Windows works.

C:\MingGW\bin is in my path (I can run g ++ or sh directly from the Windows command line), but when I try to enter make , I have the following error:

 make: g++: command not found 

I don’t know what make used (no make in C:\MinGw\bin ), and I don’t know what is equivalent to what on Windows. Have I forgot about an important step?

Thank you for your help.

+6
windows path mingw makefile
source share
3 answers

Use this command to find out which one you are using:

 for %i in (make.exe) do @echo. %~$PATH:i 

This is basically the equivalent of which for Windows, if you know the extension. If you want the script to check all the extensions, you can find it here .


As stated in Chris's comment, the latest versions of Windows (Vista, 2003 Server and Win7, I think) actually have a real equivalent called where , which could be better. Those of us who are still back on XP can use the above command (or a large script at the other end of this link).

+2
source share

Try mingw32-make instead.

+22
source share

Are you sure it does not exist? Once do “where make” to confirm this, and check the entries that you get under C: \ mingW \ bin. We hope you get a mingw-32-make.exe entry or something like that.

All you have to do is rename (it is better to create a copy and rename) this exe as make.exe, and if you have already added the environment variable of this path, now you can successfully execute the make command in accordance with mingw.

The same has already been done for g ++, gcc, etc. They could conveniently be left as they are. Hope this helps

0
source share

All Articles