Hello to all, my name is moises

I am working with ubuntu 7.10,and I installed gtk
library with synaptic package manager. and where i
verify the installation with:

pkg-config --cflags gtk+-2.0
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 

pkg-config --libs gtk+-2.0
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender
-lXinerama -lXi -lXrandr -lXcursor -lXcomposite
-lXdamage -lpango-1.0 -lcairo -lX11 -lXfixes
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  


but where I try compile:



#include <gtk/gtk.h>





int main(int argc,char *argv[]){





        GtkWidget *window;



        gtk_init (&argc, &argv);





        //Top-level window.

        window = gtk_window_new (GTK_WINDOW_TOPLEVEL);

        gtk_window_set_title (GTK_WINDOW (window),
"multiarb");



        g_signal_connect (G_OBJECT (window),
"delete_event",G_CALLBACK (gtk_main_quit), NULL);



        //Show window.

        gtk_widget_show (window);

        gtk_main ();



        return 0;

}




but I have next error:

 gcc 'pkg-config --cflags --libs gtk+-2.0' main.c -o
main.out

gcc: pkg-config --cflags --libs gtk+-2.0: No such file
or directory
main.c:3:21: error: gtk/gtk.h: No such file or
directory
main.c: In function ‘main’:
main.c:9: error: ‘GtkWidget’ undeclared (first use in
this function)
main.c:9: error: (Each undeclared identifier is
reported only once
main.c:9: error: for each function it appears in.)
main.c:9: error: ‘window’ undeclared (first use in
this function)
main.c:15: error: ‘GTK_WINDOW_TOPLEVEL’ undeclared
(first use in this function)
main.c:18: error: ‘gtk_main_quit’ undeclared (first
use in this function)

somebody can help me?




      
____________________________________________________________________________________
¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:              
        
http://correo.yahoo.com.mx/
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to