Re: make problem
- From: "Jean-Christophe Berthon" <jean-christophe berthon cgey com>
- To: "Dinuj Nath" <dinujnath rediffmail com>, <gtk-app-devel-list gnome org>
- Subject: Re: make problem
- Date: Tue, 15 Jan 2002 10:59:56 +0100
Hello,
I think you should write your Makefile like this:
**********************************************
all: lino
CC = gcc
CFLAGS = -O `gnome-config --cflags gnomeui`
LDFLAGS = -O `gnome-config --libs gnomeui`
lino: lino.o
$(CC) -o lino lino.o $(LDFLAGS)
lino.o: lino.c
$(CC) -c lino.c $(CFLAGS)
clean:
-rm lino.o
************************************************
Best regards,
---
Jean-Christophe Berthon
Cap Gemini -- Ernst & Young
France
Skill IS -- Image Quality
Email: Jean-Christophe Berthon cgey com
Tel: (+33) 561 31 6671
----- Original Message -----
From: "Dinuj Nath" <dinujnath rediffmail com>
To: <gtk-app-devel-list gnome org>
Sent: Tuesday, January 15, 2002 10:52 AM
Subject: make problem
Hi,
I have written a very simple program consisting of a
single file lino.c. I compiledwith these flags-
gcc lino.c -o lino `gnome-config --cflags
--libs gnomeui`
I then wrote a makefile for it.
**********************************************
all: lino
CC = gcc
CFLAGS = -O `gnome-config --cflags --libs gnomeui`
lino: lino.o
$(CC) -o lino lino.o
lino.o: lino.c
$(CC) -c lino.c
clean:
-rm lino.o
************************************************
When I try to make I am getting a *lot* of error
messages like
In file included from lino.c:10:
/usr/include/gnome.h:12:26: gnomesupport.h: No such
file or directory
/usr/include/gnome.h:14:21: gtk/gtk.h: No such file or
directory
In file included from /usr/include/gdk_imlib.h:5,
from /usr/include/gnome.h:15,
from lino.c:10:
/usr/include/gdk_imlib_types.h:1:21: gdk/gdk.h: No such
file or directory
In file included from
/usr/include/libgnome/libgnome.h:24,
from /usr/include/gnome.h:16,
from lino.c:10:In file included from
lino.c:10:
.........................
.........................
What is wrong with the makefile?
Dinuj
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]