[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problem compiling GTK application...



Chipzz a écrit:
On Sat, 13 Dec 2003, Alain D'EURVEILHER wrote:

  
From: Alain D'EURVEILHER <deurveia.no-spam@esiee.fr>
Subject: Re: problem compiling GTK application...

J.H.M. Dassen (Ray) a écrit:

    
On Sat, Dec 13, 2003 at 15:54:56 +0100, Alain D'EURVEILHER wrote:


      
I just installed GTK 2.2.4 and when I want to compile, i've got thoses
error messages.


        

      
cc reboot.c -c -o reboot.o `pkg-config --cflags --libs gtk+-2.0`
cc: -lpango-1.0: fichier d'entrée d'édition de liens n'est pas utilisé


        
That's not an error, it's a warning. The compiler invocation contains flags
that only apply to the linking stage ("-lpango-1.0"), but no linking is
being done ("-c" -> compile only, no linking).

HTH,
Ray


      
So.. ?? what should I do ?? keep it like this ? make the links ? (and if
so, why ??)
Will I get thoses warnings each time i will compile ??
THanks.
AlaiN.
    
s/ --libs//

Chipzz AKA
Jan Van Buggenhout
  
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.
Reply to: