Bonjour

J'essaie de compiler le programme de la page http://nicolasj.developpez.com/gtk/cours/?page=page_3
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[troumad@portable][~/Cours_IUT/info/gtk]$ gcc -Werror -Wall -W -O2 -ansi -pedantic `pkg-config --cflags --lib gtk+-2.0` *.c
--lib: unknown option
gtk.c:2:21: error: gtk/gtk.h: Aucun fichier ou répertoire de ce type
gtk.c:4: error: expected ')' before '*' token
gtk.c: In function 'main':
gtk.c:8: error: 'GtkWidget' undeclared (first use in this function)
gtk.c:8: error: (Each undeclared identifier is reported only once
gtk.c:8: error: for each function it appears in.)
gtk.c:8: error: 'p_window' undeclared (first use in this function)
cc1: warnings being treated as errors
gtk.c:11: warning: implicit declaration of function 'gtk_init'
gtk.c:14: warning: implicit declaration of function 'gtk_window_new'
gtk.c:14: error: 'GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
gtk.c:15: warning: implicit declaration of function 'g_signal_connect'
gtk.c:15: warning: implicit declaration of function 'G_OBJECT'
gtk.c:15: warning: implicit declaration of function 'G_CALLBACK'
gtk.c:15: error: 'cb_quit' undeclared (first use in this function)
gtk.c:18: warning: implicit declaration of function 'gtk_widget_show'
gtk.c:20: warning: implicit declaration of function 'gtk_main'
gtk.c: At top level:
gtk.c:24: error: expected ')' before '*' token
J'en conclu que je n'ai pas installé tout ce qu'il faut ! Mais que peut-il me manquer ?

Je peux même vous dire :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
[troumad@portable][~/Cours_IUT/info/gtk]$ ll /usr/include/gtk-2.0/         
total 0