I don't know what the ^M does there. I can't understand what it means, what file does it mean? I have MinGW installed directly under C:\MinGW, the path to mingw32-make.exe is set, and PKG_CONFIG_PATH is set as well.

Normally I use Scons, but when I was in make times, I used to just type write this into a file name makefile:
[code=]
all:
gcc -Wall -g helloworld.c -o helloworld `pkg-config --cflags --libs gtk+-2.0 `
[/code]
See the tutorial. No need to create a fancy makefile :)

Hi TriKri,
It appears that mingw32-make can't find the "rm" application. Since you're apparently not using a linux shell or a clone (like MSYS or Cygwin), your shell (which should be cmd) can't find rm as it doesn't exist in Windows. You can try replacing it with "del" and if that doesn't work, just put a # in front of the whole line and delete the .o files manually.

I have even re-loaded the original file and tried with that (after changing to del). How can it come it doesn't say the same thing as before, even though I change back to rm (as in the first post)? It doesn't matter if I use rm or del, it still outputs the same error. At least I have one Hello World executable.

Last edited by TriKri on Thu Jun 26, 2008 9:30 pm, edited 1 time in total.

I run Emacs, and compile from there using the minibuffer. I guess it just picks cmd.exe by default, and I have to change it somehow. I just changed the ComSpec variable in Environment Variables to C:\msys\1.0\msys.bat, restarted my computer, changed back from del to rm in my Makefile. But it didn't work, that's why I think it's Emacs who want's to use cmd.exe and it's that I have to change.

Problem solved. I added C:\msys\1.0\bin to PATH! :D I weren't able to find a shell-file-name (Emacs variable :p) that made me compile without any error, I tried both rxvt.exe and sh.exe, but both of them differed in look and function from MSYS.bat. Thank you for pointing out the fact that I should really use MSYS and not cmd.exe!

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum