views:

21

answers:

2

Hello all,

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.

+1  A: 

Try mingw32-make instead.

Tim Čas
+2  A: 

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

paxdiablo
for a while now, windows has had the named-just-to-be-different where tool, that will tell you where the 'make' is, which you are running :P
Chris Becke
Mate, I'm still using XP :-) No Vista/Win7 for me just yet, I'll wait for Win7 SP2.
paxdiablo
Thank you ! Actually it wasn't my computer but a friend's one and it seemed that there was a problem with mingw. The make command in the path was part of the R applications (so nothing to see with c++ development). Thanks to that, I have been able to see where was the real problem ^. I will try to directly copy some of my mingw bins like make to help him.
Elenaher