#pkg-config --cflags gtk+-2.0
-DXTHREADS -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include

#pkg-config --libs gtk+-2.0
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

On 6/8/05, Binulal Narayanan <[EMAIL PROTECTED]> wrote:
>  
>  
>  Aditya Laghate wrote:
>  
>  Hi,
> I was interested in doing some development using GTK+ 2.0
> 
> I have debian sarge (kernel 2.6) installed. I also installed all the
> libraries required for developing GTK+ applications.
> 
> In the header of the main.cpp file i put the line
> 
> #include <gtk/gtk.h>
> 
> While compiling using gcc command 
> gcc base.c -o base 'pkg-config --cflags --libs gtk+-2.0'
>  Could you post the o/p of 
>  
>  linux:~> pkg-config --cflags gtk+-2.0   AND
>  linux:~> pkg-config --libs gtk+-2.0
>  
>  May be we can find out what's wrong.
>  
>  Also you can specify -I/usr/include/gtk-2.0/ and -L/usr/lib/gtk-2.0/ 
> instead of using pkg-config 
>  Please make sure you add proper '-l'things -- I'm not sure abt it  - but
> seems to be "-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
> -lpangox-1.0 -lpangoxft-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl
> -lglib-2.0" on my box.
>  
>  hope this helps
>  Binulal narayanan
>

--
______________________________________________________________________
Pune GNU/Linux Users Group Mailing List:      ([email protected])
List Information:  http://plug.org.in/mailing-list/listinfo/plug-mail
Send 'help' to [EMAIL PROTECTED] for mailing instructions.

Reply via email to