EMACS on XP cannot recognise "make" command

Aug 13, 2008 at 7:23pm
hi i am very new to programming & am trying to learn C++ programming on EMACS on XP as that is the OS i am used to.
when i try compiling a program on emacs on XP it says make file is not recognized as as an internal or external command.
well on searching in the forums i found this link discussing the same " http://www.cplusplus.com/forum/beginner/182/ " there somebody has replied installing mingw the official gcc complier but thats it nothing more on that.
Even after installing the mingw compiler on system i get the same error.
i am not sure what to do after installing the mingw compiler how can i compile a simple program from within EMACS.
Please help i have been trying to figure it out on my self this thing for a week now.

regards,
S
Aug 13, 2008 at 7:34pm
MinGW doesn't include make. If you want to compile something a la GNU you'll need MSYS.
Aug 13, 2008 at 7:46pm
So you mean to say like write a program using EMACS then compile it ins separate window of MSYS..??
Is there a way like i can write a code & compile it in EMACS itself ..??
Bcos i have downloaded & installed MINGW & MSYS both. In MSYS i am able to like compile say "Hello world " & get output.
But again question remains can i how can i use EMACS as IDE to write & compile a program.
Aug 13, 2008 at 9:14pm
You need to get yourself mingw-make
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=23918

In your C:\mingw\bin directory make a copy of mingw-make.exe and name it make.exe. Just make sure that when you are using MSYS that MSYS's bin directory is listed before mingw's in the $PATH, so it uses the correct make program.

The mingw-make program is modified to work on windows without the proper POSIX environment running. It works fine for simple stuff, but if you want to compile anything "normal" you'll have to do as helios suggests and operate from within the MSYS shell.

Good luck!
Last edited on Aug 13, 2008 at 9:16pm
Aug 14, 2008 at 10:57am
Well as i said i am able to compile with MSYS so no issues for now as far as that goes.
But yes EMACS is an issue .....
Aug 14, 2008 at 12:20pm
Topic archived. No new replies allowed.