[5100] in RedHat Linux List
Re: gcc #include path problems
daemon@ATHENA.MIT.EDU (Keven R. Pittsinger)
Tue Nov 19 00:48:12 1996
Date: Tue, 19 Nov 1996 01:35:14 -0500 (EST)
From: "Keven R. Pittsinger" <jamstar@multiverse.com>
To: redhat-list <redhat-list@redhat.com>
In-Reply-To: <328F7E86.268@cassini.lpl.arizona.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Sun, 17 Nov 1996, Dean Schulze wrote:
> I did the CD upgrade to RedHat Intel/4.0 and gcc can't find
> the .h files for the command #include <linux/xxxx.h>. I can
> fix this by putting
>
> -I /usr/src/linux-2.0.18/include/linux
>
> in all of the makefiles. But even then I get errors like
>
> cc -c -g -I /usr/src/linux-2.0.18/include/linux -I. -I./../include
> cplus-dem.c
> In file included from cplus-dem.c:29:
> /usr/src/linux-2.0.18/include/linux/string.h:4: linux/types.h: No such
> file or directory
> /usr/src/linux-2.0.18/include/linux/string.h:39: asm/string.h: No such
> file or directory
>
>
> What do I have to do to get the gcc default include path
> right?
CD to /usr/src and type ln -sf /usr/src/linux-2.0.18 /usr/src/linux
That'll fix it.
Keven
==============================================================================
"When the going gets weird, | jamstar@multiverse.com | Keven R. Pittsinger
the weird turn pro." -- | aa253@po.cwru.edu | Certified Public
Dr. Hunter S. Thompson | SUE ME!! | Nuisance
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null