newbie doubt with gtktutorial



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:

can anyone help me to get this working?
devnew



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