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: (plug-mail@plug.org.in)
List Information: http://plug.org.in/mailing-list/listinfo/plug-mail
Send 'help' to [EMAIL PROTECTED] for mailing instructions.