I'm having a hard time executing a makefile that was created by my professor. In a directory, I have main.c, pair.c, pair.h, prep_defs.h, and makefile.txt. At school(we use Macs), I was able to simply type "make" at the terminal command prompt and it would work. At home, I am running a Windows 7 machine and using gcc in the windows command prompt. I went into the directory with all the mentioned files and typed in "make," but it says "'make' is not recognized as an internal or external command, operable program or batch file." Is there another way to execture this makefile that I am unaware of? Any help would be appreciated. Thanks!
If I remember right download the windows installer for MinGW it gives you the option to also install msys which comes with all the necessary binutils (make included). Then all you have to do is set path and your makefile will work just fine.
The suggestions above will work but MinGW with the Msys is a little more idiot proof.
Alright, I've downloaded the MinGW installer and installed it, including the msys...it downloaded and installed a whole bunch of stuff. Afterwards, I went into the environment variables, found in the system control panel, and added "C:\MinGW\bin;" to the PATH environment variable. I then opened up a new command prompt window and typed in "make" but I still get the same message as before. Am I not installing this correctly? I need to get this to work so I can start working on my homework which is due in a few days...once again, any help would be appreciated.
i have already installed "MinGW with msys" and added "C:\MinGW\bin" to the PATH environment variable. but when i type make, the command line says "make is not an internal or external command, operable program or batch file. could you please elaborate how to got around this problem?tnx