Re: gtk application compile error



Hi,

"Raheel" <raheel khan hotpop com> writes:

> I have written a very basic program using gtk_widgets. 
> And tried the command line switches. Below is what i got when try to 
>  compile:
>  
>  #  gcc -Wall wind.c -o wind.o 'gtk-config --libs --cflags'

are you perhaps using gtk+-2.x (you really should do) ? If so, you
will want to use the following line instead:

 gcc -Wall wind.c -o wind.o 'pkg-config --libs --cflags gtk+-2.0'

See http://developer.gnome.org/doc/API/2.0/gtk/gtk-compiling.html


Salut, Sven



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