A
alternative451
hi
//my included files
#include<gdk/gdk.h>
#include<gdk/gdkx.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <gdk/gdkx.h>
#include<stdio.h>
a_fuction(){
GdkPixbuf *buf_pixel; // where i create a pixbuf object
}
main(){
}
//my gcc compilation line
gcc -lgdk_pixbuf-2.0 -lm main.c -o main `pkg-config --cflags --libs gtk
+`
// error
main.c:24: erreur: «GdkPixbuf» undeclared (first use in this function)
main.c:24: erreur: (Each undeclared identifier is reported only once
main.c:24: erreur: for each function it appears in.)
main.c:24: erreur: «buf_pixel» undeclared (first use in this function)
the gnome pixbuf section :
http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-gdk-pixbuf.html
but if i include <gdk-pixbuf/gdk-pixbuf.h> gcc return no file found
I look for using a pixbuf object but i havent found how.
i don't know if it's a gcc option or in my code.
tanks
//my included files
#include<gdk/gdk.h>
#include<gdk/gdkx.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <gdk/gdkx.h>
#include<stdio.h>
a_fuction(){
GdkPixbuf *buf_pixel; // where i create a pixbuf object
}
main(){
}
//my gcc compilation line
gcc -lgdk_pixbuf-2.0 -lm main.c -o main `pkg-config --cflags --libs gtk
+`
// error
main.c:24: erreur: «GdkPixbuf» undeclared (first use in this function)
main.c:24: erreur: (Each undeclared identifier is reported only once
main.c:24: erreur: for each function it appears in.)
main.c:24: erreur: «buf_pixel» undeclared (first use in this function)
the gnome pixbuf section :
http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-gdk-pixbuf.html
but if i include <gdk-pixbuf/gdk-pixbuf.h> gcc return no file found
I look for using a pixbuf object but i havent found how.
i don't know if it's a gcc option or in my code.
tanks