I have a small problem with make and mingw. I usually use Linux and I am not really familiar with windows way of doing.
C:\MingGW\bin
is in my path (I can launch directly g++ or sh by the windows command line) but when I try to type make
I have the following error :
make: g++: command not found
I do not know which make
is use (no make
in C:\MinGw\bin
) and I do not know the equivalent of which in windows. Do I have forgotten an essential step ?
Thanks for your help.
Try mingw32-make instead.
Use this command to find out which one you're running:
for %i in (make.exe) do @echo. %~$PATH:i
It's basically the equivalent of which
for Windows, assuming you know the extension. If you want a script that will check all extensions, you can find it here.
As pointed out in a comment by Chris, latter versions of Windows (Vista, 2003 Server, and Win7, I think) actually have a real equivalent called where
, which may be better. Those of us still stuck back on XP can use the command above (or the big script at the other end of that link).
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