I tried this :Hi, Alain D'eurveilher <[EMAIL PROTECTED]> writes:------------------- Hi, I just installed GTK 2.2.4 and when I want to compile, i've got those warning messages. Can anybody help me on this please....? 15:41 [EMAIL PROTECTED] ~/gtk/reboot% LC_ALL=C make cc reboot.c -c -o reboot.o `pkg-config --cflags --libs gtk+-2.0` cc: -lpango-1.0: linker input file unused because linking not doneYou aren't actually linking any executable and the compiler warns you that you are passing it linker flags. You should use the following command instead: cc reboot.c -c -o reboot.o `pkg-config --cflags gtk+-2.0` Sven _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
in my 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
-----------------------
then
-----------------------
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%
------------------------
=> it looks fine. But am I right this way ??
thx AlaiN.
