Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 May 2008 14:52:30 -0400
From:      Mike Edenfield <kutulu@kutulu.org>
To:        Dave Uhring <duhring@charter.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Buildworld Fails RELENG_7
Message-ID:  <4831CC6E.4040101@kutulu.org>
In-Reply-To: <20080519183614.GB55295@charter.net>
References:  <20080519151739.GA50653@charter.net>	<4AB77C7C-55F7-4CC3-B842-E684F6C899E3@rabson.org>	<20080519163825.GA32372@charter.net>	<DB8B754A-5994-4358-9F8C-93218AAEF9F4@rabson.org>	<20080519165421.GA62264@charter.net>	<20080519170223.GH7468@bunrab.catwhisker.org>	<20080519175358.GB55020@charter.net>	<20080519180201.GI7468@bunrab.catwhisker.org> <20080519183614.GB55295@charter.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Dave Uhring wrote:

> If a -I/some/directory is used as a CFLAG then the *include directive must read
> 
> #include <driver.h>, *not* #include "driver.h".  The latter demands that the
> header file be in the same directory as the source file.

Absolutely not true.  Directly from the gcc online manual:

"GCC looks for headers requested with #include "file" first in the 
directory containing the current file, then in the directories as 
specified by -iquote options, then in the same places it would have 
looked for a header requested with angle brackets. For example, if 
/usr/include/sys/stat.h contains #include "types.h", GCC looks for 
types.h first in /usr/include/sys, then in its usual search path."




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4831CC6E.4040101>