thanks for quick reply
I have now correctly entered the compile statement as shown:
[nakul@sparkle ~]$ gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
But again get the same error:
[nakul@sparkle ~]$ gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
base.c:2:21: error: gtk/gtk.h: No such file or directory
base.c: In function ‘main’:
base.c:7: error: ‘GtkWidget’ undeclared (first use in this function)
base.c:7: error: (Each undeclared identifier is reported only once
base.c:7: error: for each function it appears in.)
base.c:7: error: ‘window’ undeclared (first use in this function)
base.c:11: error: ‘GTK_WINDOW_TOPLEVEL’ undeclared (first use in this function)
[nakul@sparkle ~]$
I have also check this: ls /usr/lib/pkgconfig/gtk+-2.0.pc
and get this:
[nakul@sparkle ~]$ ls /usr/lib/pkgconfig/gtk+-2.0.pc
/usr/lib/pkgconfig/gtk+-2.0.pc -------> as you expected
[nakul@sparkle ~]$
I had taken mention link for reference for compiling libraries in sequence:
http://www.linuxforums.org/forum/lin...-programs.html
but during configuring lib-autoconfig i get the error for expat library ( says it is too old).
now, i can't make out where did i go wrong.