DragonFly users List (threaded) for 2008-10
DragonFly BSD
DragonFly users List (threaded) for 2008-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: problem in gtk programming


From: "Dmitri Nikulin" <dnikulin@xxxxxxxxx>
Date: Sun, 19 Oct 2008 13:24:34 +1100

On Sun, Oct 19, 2008 at 1:37 AM, dark0s Optik <shiftcoder@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



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