On Thu, Sep 27, 2001 at 11:00:40AM -0400, Steve M. Robbins wrote:
> On Thu, Sep 27, 2001 at 07:43:57AM -0700, no...@so... wrote:
> > For the cpp file it is ok. #include <filename> states that include path indicate
> > with /I option are search first, then those of the environment variable.
>
> Careful -- you're getting into system-dependent behaviour here!
> I've never met a C compiler that used an environment variable to change
> the header include path!
I take this back. GCC does pay attention to some environment variables.
On the other hand, I've never seen them in use.
> All the headers in include/cppunit *must* include the other headers
> using <cppunit/...> notation.
I'd also like to tone this down a bit. In fact, the difference
between <header> and "header" is system-dependent
<http://www.eskimo.com/~scs/C-faq/q10.8.html>.
But it still seems to me that <cppunit/foo> is the correct choice in
this case. Other "3rd party" libs, like Qt and Gtk use <>-style includes.
-S
--
by Rocket to the Moon,
by Airplane to the Rocket,
by Taxi to the Airport,
by Frontdoor to the Taxi,
by throwing back the blanket and laying down the legs ...
- They Might Be Giants
|