Hello,
I have followed a tutorial for creating a simple gtk+2 application using MinGW. The c source file looks alright, but the Makefile seems to contain an error:
First, I wonder why it says CC=gcc when I'm using mingw. But that's not the problem. My compiler complains and says "`pkg-config: No such file or directory". I read somewhere that the backquotes used in that line is a unix/linux thing that the windows shell doesn't understand. What should I use instead?Code:CC=gcc CFLAGS=`pkg-config --cflags --libs gtk+-2.0` CFLAGS+=-mwindows SRC=hello.c OBJ=$(SRC:.c=.o) OUT=hello.exe all: $(OUT) rm $(OBJ) #Remove .o $(OBJ) : $(CC) $(SRC) $(CFLAGS) -c #Create .o $(OUT) : $(OBJ) $(CC) $(OBJ) $(CFLAGS) -o $@ #Link .o