Re: [gtk-list] HELP : can't compile anymore
- From: Nils Philippsen <nils rhlx01 rz fht-esslingen de>
- To: ryo <P Loubigniac bton ac uk>
- cc: gtk list <gtk-list redhat com>
- Subject: Re: [gtk-list] HELP : can't compile anymore
- Date: Tue, 28 Apr 1998 08:59:30 +0200 (MET DST)
Hi,
On Mon, 27 Apr 1998, ryo wrote:
> I recently had problem with my file system and had to reinstall linux.
>
> Now I can't compile gtk applications anymore, here is the output when I
> try to compile scribble_simple (the exemple in the tutorial)
>
> [root@pcpl55 spline]# compile scribble
> In file included from /usr/include/posix1_lim.h:92,
[snip]
> /usr/include/local_lim.h:21: linux/limits.h: No such file or directory
> [root@pcpl55 spline]#
>
Assuming your Linux-source tree is at /usr/src/linux, issue the following as
root:
cd /usr/src/linux
make symlinks
cd /usr/include
ln -s ../src/linux/include/asm asm
ln -s ../src/linux/include/linux linux
ln -s ../src/linux/include/scsi scsi
[snip]
> If I install gtk+-1.0.0-1 I still can execute applications (scribble works
> normally) but I get this message when I compile:
>
>
> [root@pcpl55 test]# compile scribble
> In file included from /usr/include/gdk/gdktypes.h:25,
> from /usr/include/gdk/gdk.h:23,
> from /usr/include/gtk/gtk.h:23,
> from scribble.cpp:19:
> /usr/include/glib.h:22: glibconfig.h: No such file or directory
> [root@pcpl55 test]#
This is a FAQ - since around gtk+-0.99.6 (?!) glibconfig.h is in
/usr/lib/glib/include/, for your convenience there is a utility called
"gtk-config" which will spit out the cflags (--cflags) or library flags
(--libs), so you can do
gcc -c `gtk-config --cflags` mysrc1.c
gcc -c `gtk-config --cflags` mysrc2.c
gcc `gtk-config --libs` -o myprog mysrc1.o mysrc2.o
Bye, Nils
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nils Philippsen @college: nils@rhlx01.rz.fht-esslingen.de
Vogelsangstrasse 115 @home: nils@wombat.dialup.fht-esslingen.de
D 70197 Stuttgart phone: +49-711-6599405
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wer heute an der Bildung spart, Those who scrimp on education today,
hat morgen noch bloedere Politiker. get even dumber politicians tomorrow.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]