On Jan 20, 2008 12:35 AM, dev new <[EMAIL PROTECTED]> wrote:
> hi
> i am trying out the gtk tutorial with gcc (cygwin on winXP) and wanted
> to run the first example in gtktutorial (to show blank window)..i
> copied the code and compiled it with
> gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
>
> using the backticks( ` ) works in cygwin shell (but not in DOS)
> anyway compilation gave a base.exe in my code folder,
> when i try to run it it asks for some dlls (mostly starting cygX*.dll )
> so i copied these dlls to the code directory and again tried to run it in DOS
> then base.exe tries to access the internet and then exits without
> opening a window
> it gives an error likw
> (base:2664): Gtk-WARNING **: cannot open display:

You need to run this from a cygwin shell, since that's what provides
the X display. If you want a native Win32 binary, you need to use the
native Win32 port of GTK with gcc (mingw) or Visual C++.

-Jim
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to