Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make problem with mingw

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.

like image 230
ThR37 Avatar asked Oct 29 '10 14:10

ThR37


2 Answers

Try mingw32-make instead.

like image 114
Tim Čas Avatar answered Nov 15 '22 23:11

Tim Čas


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).

like image 37
paxdiablo Avatar answered Nov 16 '22 01:11

paxdiablo