I followed a tutorial
for creating a simple gtk application in windows using MinGW. The c-code should be correct, it's the linking that's troubling:
CFLAGS=`pkg-config --cflags --libs gtk+-2.0`
rm $(OBJ) #Remove .o
$(CC) $(SRC) $(CFLAGS) -c #Create .o
$(OUT) : $(OBJ)
$(CC) $(OBJ) $(CFLAGS) -o $@ #Link .o
The compile complains and says
rm hello.o #Remove .o
process_begin: CreateProcess(NULL, rm hello.o #Remove .o, ...) failed.
make (e=2): Det gÃ¥r inte att hitta filen.^M
mingw32-make: *** [all] Error 2
A little is in Swedish, that part says
make (e=2): The system cannot find the file specified.^M
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.