problem in gtk programming

Dmitri Nikulin dnikulin at gmail.com
Sat Oct 18 19:34:45 PDT 2008


On Sun, Oct 19, 2008 at 1:37 AM, dark0s Optik <shiftcoder at gmail.com> wrote:
> I am triyng to programming with gtk over DragonFly.
> The gcc output is:
>
> #gcc prova.c -o prova
> 1:21: error: GtkWidget undeclared
> 5: error: window undeclared
> 9: GTK_WINDOW_TOP_LEVEL undeclared

You have to -I/usr/pkg/include/gtk-2.0, among others.

The best way to do this for a single source file:

gcc `pkg-config gtk+-2.0 --libs --cflags` -o prova prova.c

-- 
Dmitri Nikulin

Centre for Synchrotron Science
Monash University
Victoria 3800, Australia





More information about the Users mailing list