Email List: Xaustin-group-lX
[All Lists]

RE: Re: question about headers

To: Schwarz Konrad <yyyyyyyyyyyyyy@xxxxxxxxxxx>
Subject: RE: Re: question about headers
From: Garrett Wollman <yyyyyyy@xxxxxxxxxxx>
Date: Fri, 9 May 2003 12:56:31 -0400 (EDT)
Cc: yyyyyyyyyyyyyy@xxxxxxxxxxxxx
References: <2A8DB02E3018D411901B009027FD3A3F01CAAD56@mchp905a.mch.sbs.de>
<<On Fri, 9 May 2003 18:43:21 +0200 , Schwarz Konrad 
<yyyyyyyyyyyyyy@xxxxxxxxxxx> said:

> I don't know how complicated the directory structures are, but note that you
> can do

> # include "../sys/blah.h"

Actually, no, I can't do that, because <foo/bar.h> is not necessarily
found in the same ``usual place'' as <sys/blah.h> (and depending on
how the system is being compiled I may have no way of knowing where
either directory actually is in the filesystem).

If the compiler is processing a header file called <machine/_types.h>
(just to give one real-life example), "../" might be anywhere; the
path to where the particular <sys/*.h> for this specific compilation
is found might be "../../sys", or it might be "../../../sys", or it
might be "../sys", or it might be "$S" (where $S is a variable defined
in a Makefile and only accessible to the compiler by way of the -I
flag).

-GAWollman

<Prev in Thread] Current Thread [Next in Thread>