Re: Problem compiling GTK application...
- From: Alain D'EURVEILHER <deurveia esiee fr>
- To: gtk-list gnome org
- Subject: Re: Problem compiling GTK application...
- Date: Sun, 14 Dec 2003 13:32:56 +0100
Sven Neumann a écrit:
Hi,
Alain D'eurveilher <deurveia esiee fr> 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 bozz BOZZ ~/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 done
You 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
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
I tried this :
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 bozz BOZZ ~/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 bozz BOZZ ~/gtk/test1%
------------------------
=> it looks fine. But am I right this way ??
thx AlaiN.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]