[4995] in RedHat Linux List
Re: gcc #include path problems
daemon@ATHENA.MIT.EDU (Otto Hammersmith)
Mon Nov 18 13:58:24 1996
From: Otto Hammersmith <ohammers@cu-online.com>
To: redhat-list@redhat.com
Date: Mon, 18 Nov 1996 12:46:25 -0600 (CST)
In-Reply-To: <328F7E86.268@cassini.lpl.arizona.edu> from "Dean Schulze" at Nov 17, 96 02:07:18 pm
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
/usr/include/asm and /usr/include/linux should be symlinks to,
/usr/src/linux/include/asm, and /usr/src/linux/include/linux
repsectively.
If you don't have /usr/src/linux as your source tree, or a symlink of
/usr/sr/linux to your kernel source, things will break.
Also, /usr/src/linux/include/asm should be symlink to the right
architecture... should already be done.
In short make sure...
/usr/include/asm -> /usr/src/linux/include/asm
/usr/include/linux -> /usr/src/linux/include/linux
/usr/src/linux -> /usr/src/linux-2.0.18
/usr/src/linux/include/asm -> /usr/src/linux/include/asm-i386
Enjoy.
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?
>
> I'm trying to build the Texas persistent store and there are
> too many Makefile.in files to have to manually insert additional
> -I arguments.
>
> Thanks.
>
>
> Dean Schulze
>
> ======================================================================
> "You plot the growth of the NEA [National Education Association] and
> the dropping of SAT scores, and they're inversely proportional.
> The problems are unions in the schools. The problem is bureaucracy.
> I'm one of these people who believes the best thing we could ever do
> is go to the full voucher system."
>
> Steve Jobs
> Wired Magazine, Feb. 96
> http://www.hotwired.com/wired/4.02/features/jobs.html
> =====================================================================
>
>
> --
> 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
>
>
--
-Otto
--
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