Aide en Glib/C

Fermé
mimi09 - 12 avril 2010 à 15:53
Bonjour,
je travaille sous linux et j'utilise les GSList en C mais a la compilation il y'a un probleme avec la Glib
voici mon makefile:

#definition du compilateur
CC = gcc
GLIB = -I/usr/local/include/glib-2.0\
-I/usr/local/include/glib-2.0/glib\
-I/usr/local/lib/glib-2.0/include
LIB = -L /usr/local/lib

#specification des options du compilateur
CFLAGS = -ansi -Wall -pedantic

#nom de l'executable
PROG = stock

#definition de la cible a reconstruire
all : $(PROG)

#edition de liens et production executable
$(PROG) : stock.o silos.o
$(CC) $(CFLAGS) stock.o silos.o -o $(PROG) $(LIB) -lglib-2.0

#compilation du fichier stock.c
stock.o : stock.c def.h
$(CC) $(CFLAGS) $(GLIB) -c stock.c $(G)

#compilation du fichier silos.c
silos.o : silos.c def.h
$(CC) $(CFLAGS) $(GLIB) -c silos.c $(G)


et voila ce ke j'ai comme erreur
gcc -g -ansi -Wall -pedantic -c -o stock.o stock.c
stock.c:3:18: error: glib.h: Aucun fichier ou dossier de ce type



j'ai essayer d'intaller la glib mais ça ne marche pas :

checking for msgfmt... no
configure: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html


alors que j'ai deja installé gettext


je suis un peu perdue!toute aide sera la bienvenue.merci d'avance