Ok after spending most of a day actually getting GTK to compile on my windows box I ran into a snafu. Basically when I run my application it looks and acts like normal, however when I close it, the window does close, but the program stays in memory. By this I mean I have the task manager open and run my program base.exe (from the OFFICIAL GTK+ tutorial) and when I close the window the base.exe stays in memory, indefinitely. Does anyone know what would cause this?
My environment is that of MinGW and MSYS with Tor Lillqvist GTK Win32 libs (sorry no link, first post). I proceed to compile the way the tutorial tells me to with the following makefile (i've tried hand coded too):
Code:
CC = /mingw/bin/gcc
PKGFLAGS = `pkg-config --cflags --libs gtk+-2.0`
WIN = -mwindows -mno-cygwin
CFLAGS = -Wall -O2 $(WIN)
SRC = base.c
LIBS =
EXE = base.exe
.PHONY : clean strip
all: $(EXE)
$(EXE) :
$(CC) -o $(EXE) $(SRC) $(CFLAGS) $(PKGFLAGS)
clean:
rm -f $(SRC:.c=.o)
strip:
strip $(EXE)
My Source is as follows:
Code:
#include <gtk/gtk.h>
int main( int argc, char **argv ) {
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);
gtk_main ();
return 0;
}
So again, any help would be very much appriciated,
--Alex