sachin: help in compiling gdk program



Dear friends,
I am beginner of the gtk+ programming. I want to compile a simple gdk program which can plot the given points in a window. I don't when I compile the program start.c with following command line,

gcc -Walls start.c -o start `gtk-config --cflags --libs`

the program compiles without warning but

(GdkWindow *) window = gdk_window_new( window, attr, 0xb100);

this statement stores NULL in windows!
Can you help me?

thanks a lot.
                    Sachin






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