Buildworld Fails RELENG_7
Mike Edenfield
kutulu at kutulu.org
Mon May 19 19:50:35 UTC 2008
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."
More information about the freebsd-stable
mailing list