Re: [gtk-list] gnome-config ---> my Makefile
- From: "Michael" <mikejuni yahoo com>
- To: <gtk-list redhat com>
- Subject: Re: [gtk-list] gnome-config ---> my Makefile
- Date: Wed, 27 Oct 1999 17:29:51 +0800
it should be `gnome-config --cflags gnome`
or `gnome-config --libs gnome`
----- Original Message -----
From: Javi <javi@hardlogic.es>
To: <gtk-list@redhat.com>
Sent: Wednesday, October 27, 1999 5:10 PM
Subject: [gtk-list] gnome-config ---> my Makefile
> Hi again, my Makefile:
>
> --------------------------------------------
> # Options
> CFLAGS = -Wall -O2
> GTKCFLAGS = `gnome-config --cflags`
> GTKLIBS = `gnome-config --libs`
> # Files
> SCR = hello.c menu.c app.c
> OBJ = hello.o menu.o app.o
> # Final executable
> PROGRAMA = gnome-hello
> # Rules
> all: $(PROGRAM)
> $(PROGRAM): $(OBJ)
> $(CC) $(CFLAGS) -o $@ $(GTKLIBS) $(OBJ)
> hello.o: hello.c
> $(CC) --version
> $(CC) $(CFLAGS) $(GTKCFLAGS) -c hello.c
> menu.o: menu.c menu.h
> $(CC) $(CFLAGS) $(GTKCFLAGS) -c menu.c
> app.o: app.c app.h
> $(CC) $(CFLAGS) $(GTKCFLAGS) -c app.c
> clean:
> $(RM) $(OBJ) $(PROGRAM)
> -----------------------------------------------
>
> Output error:
>
> gcc --version
> egcs-2.91.66
> gcc -Wall -O2 `gnome-config --cflags` -c hello.c
> In file included from hello.c:31:
> /usr/include/gnome.h:4: gnomesupport.h: Don't exist file or directory
> In file included from /usr/include/gdk/gdktypes.h:33,
> from /usr/include/gdk/gdk.h:31,
> from /usr/include/gtk/gtk.h:31,
> from /usr/include/gnome.h:6,
> from rptar.c:31:
> /usr/include/glib.h:66: glibconfig.h: Don't exist file or directory
> make: *** [hello.o] Error 1
>
>
>
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com <
/dev/null
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]