cygwin & gtk

Can somebody help me 
I'm unable to run even the following small Gtk program under cygwin 

#include <gtk/gtk.h>
int main (int argc, char *argv[]) 
        gtk_init(&argc, &argv);
        // gtk_main();
        return 1;

It compiles & links well 
gcc m.c -o m `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0`

but when I try to run it I always receive: 

 5 [unknown (0x164)] ? 636 cygheap_fixup_in_child: Couldn't reserve space 
for cygwin's heap (0x615C0000 <0xAA0000>) in child, Win32 error 487
E:\cygwin\home\m.exe: *** m.AllocationBase 0x0, m.BaseAddress 0x615C0000, 
m.RegionSize 0x80000, m.State 0x10000

Am I doing something wrong ? 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]