[Glade-users] (newbie) gcc compilation



Hi,
i'm new with glade and gtk

I've done with glade-3 (ubuntu feisty) an interface, so i've a 'age.glade' file

I compile my age.c file with this :
################################
CC = gcc
CFLAGS = `pkg-config --cflags gtk+-2.0 libglade-2.0`
LIBS = `pkg-config --libs gtk+-2.0 libglade-2.0`

all: age

age: age.o
        $(CC) $< $(LIBS) -o $@ -export-dynamic

age.o: age.c
        $(CC) $(CFLAGS) -o $@ -c $<
#################################

All is ok when i run my age output file under he directory including
the .glade file, but when i move my binary file, i've got a lot of
errors, it seems that it's looking for the .glade file...
I've surely miised some compilation option...but what ?

thank you for your help

david




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