* Re: Set gcc to kernel header path
2004-02-27 13:51 Set gcc to kernel header path Tibor Kendl
@ 2004-02-27 13:33 ` Richard B. Johnson
0 siblings, 0 replies; 2+ messages in thread
From: Richard B. Johnson @ 2004-02-27 13:33 UTC (permalink / raw)
To: Tibor Kendl; +Cc: linux-kernel
On Fri, 27 Feb 2004, Tibor Kendl wrote:
> Dear mailing list members!
>
> I'd like to know, how do you solve this problem on your own systems.
> I've installed a linux distribution with a 2.2.18 kernel, than i've
> downloaded, compiled and installed a 2.6.2 kernel. How can i make, if i
> want to compile any application ( like Samba, Apache, KDE, etc...), the
> gcc compiler use the '/usr/src/linux-2.6.2/include' header path instaead
> of the '/usr/include' for such include directories like 'linux', 'asm',
> 'asm-generic', etc...?
>
> Yours
> Tibor Kendl
>
gcc -I/usr/src/linux-2.6.2/include
... if you are sure that's what you want. Normally, you use the
headers that your 'C' runtime library was compiled with, i.e.,
what's in /usr/include.
gcc will search the -I/path first, then do the other ones unless
you use -nostdinc on the command-line as well. If you use
-nostdinc, you need to also put -I`gcc -print-file-name=include` on
the command line, also or else gcc won't find stddef.h, etc., which
are not in one of the "standard places".
Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Set gcc to kernel header path
@ 2004-02-27 13:51 Tibor Kendl
2004-02-27 13:33 ` Richard B. Johnson
0 siblings, 1 reply; 2+ messages in thread
From: Tibor Kendl @ 2004-02-27 13:51 UTC (permalink / raw)
To: linux-kernel
Dear mailing list members!
I'd like to know, how do you solve this problem on your own systems.
I've installed a linux distribution with a 2.2.18 kernel, than i've
downloaded, compiled and installed a 2.6.2 kernel. How can i make, if i
want to compile any application ( like Samba, Apache, KDE, etc...), the
gcc compiler use the '/usr/src/linux-2.6.2/include' header path instaead
of the '/usr/include' for such include directories like 'linux', 'asm',
'asm-generic', etc...?
Yours
Tibor Kendl
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-27 13:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-27 13:51 Set gcc to kernel header path Tibor Kendl
2004-02-27 13:33 ` Richard B. Johnson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.