[Glade-users] (newbie) gcc compilation

david cobac david.cobac at gmail.com
Tue May 1 14:24:52 EDT 2007


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


More information about the Glade-users mailing list