J'ai essayé ceci :Ainsi parla Alain D'EURVEILHER le 347ème jour de l'an 2003:pkg-config --cflags --libs gtk+-2.0que donne cette commande ?
dans mon Makefile :
--------------
GLIBS = `gtk-config --libs --cflags`
GFLAGS = `gtk-config --cflags`
GNLIBS = `gnome-config --cflags --libs gnomeui`
GNFLAGS = `gnome-config --cflags`
GTALL = `pkg-config --cflags --libs gtk+-2.0`
GTFLAGS = `pkg-config --cflags gtk+-2.0`
GTLIBS = `pkg-config --libs gtk+-2.0`
all: reboot
reboot: reboot.o
cc reboot.o -o reboot $(GTALL)
reboot.o: reboot.c
cc reboot.c -c -o reboot.o $(GTFLAGS)
clean:
rm -f *.o
-----------------------
Puis :
-----------------------
13:17 [EMAIL PROTECTED] ~/gtk/test1% make clean && make
rm -f *.o
cc reboot.c -c -o reboot.o `pkg-config --cflags gtk+-2.0`
cc reboot.o -o reboot `pkg-config --cflags --libs gtk+-2.0`
13:20 [EMAIL PROTECTED] ~/gtk/test1%
------------------------
=>Ca semble mieux. Mais ai-je raison de faire ainsi ??
thx AlaiN.