URL: https://linuxfr.org/forums/programmation-c--2/posts/probl%C3%A8me-avec-la-compilation-dun-programme-gtk Title: Problème avec la compilation d'un programme GTK Authors: atalmapi Date: 2006年12月30日T02:34:41+01:00 Tags: Score: 0 Bonjour, Je souhaite compiler le programme suivant : #include "stdlib.h"; #include "gtk/gtk.h"; int main(int argc, char **argv) { £spaces£ £/spaces£/* Initialisation de GTK+ */ £spaces£ £/spaces£gtk_init(&argc, &argv); £spaces£ £/spaces£return EXIT_SUCCESS; } Je tape la commande gcc `pkg-config --libs --cflags gtk+-2.0` test.c -o test et j'obtiens le méchant message : ** /usr/bin/ld: skipping incompatible /usr/lib/libgtk-x11-2.0.so when searching for -lgtk-x11-2.0 /usr/bin/ld: skipping incompatible /usr/lib/libgtk-x11-2.0.so when searching for -lgtk-x11-2.0 /usr/bin/ld: cannot find -lgtk-x11-2.0 collect2: ld returned 1 exit status ** Sachant que je suis sous Mandriva 2007 et que la commande pkg-config --modversion gtk+-2.0 me renvoie 2.10.3, est ce que quelqu'un aurait une idée pour résoudre ce problème car je sèche totalement.... Merci à tous