from gcc's manpage:
-nostdinc
Do not search the standard system directories for
header files. Only the directories you have speci<AD>
fied with `-I' options (and the current directory,
if appropriate) are searched.
By using both `-nostdinc' and `-I-', you can limit
the include-file search file to only those directo<AD>
ries you specify explicitly.
-nostdinc++
Do not search for header files in the C++-specific
standard directories, but do still search the other
standard directories. (This option is used when
building `libg++'.)
So you could probably do:
-nostdinc -nostdinc++ -I$HEADER_DIR
FL
On Mon, 26 Feb 2001, Peter Jay Salzman wrote:
> heh. i tried that. the trouble is that the man pages say that -I appends
> the directory to the list of directories to serach for .h files.
>
> i want to replace them!
>
> pete
>
> On Mon 26 Feb 01, 7:48 PM, Foo Lim said:
> > Can you give it the -I option?
> >
> > ie. gcc file.c -I/usr/src/linux-2.4.1/include
> >
> > ? FL
> >
> > On Mon, 26 Feb 2001, Peter Jay Salzman wrote:
> >
> > > HEADER_DIR = "/usr/src/linux-2.4.1/include/linux"
> > > WRONG_DIR = "/usr/include/linux"
> >
>
> --
> "...and here is fortress ovum being stormed by [EMAIL PROTECTED]
> millions of tiny warriors..." www.dirac.org/p
> -- Robert "Schweitzer" Picardo
>