This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: /usr/local/include before /usr/include?


On Fri, Feb 25, 2000 at 12:08:13PM -0600, Brian Ford wrote:
> I just noticed that gcc seems to default to having /usr/local/include
> before /usr/include in its include path.  Why is this?
> 
> Should not all system includes have first priority unless someone
> specifically asks for something different?

Aren't /usr/local/include files system includes? If a system
administrator, for whatever reason, wants to override a
system include, should he not put it in /usr/local/include?
(Should the system administrator override a system
include under normal circumstances? No. But if she creates
/usr/local/include/stdio.h, I would assume that's what she
intended to do.)

-- 
David Starner - dstarner98@aasaa.ofe.org
Only a nerd would worry about wrong parentheses with
square brackets. But that's what mathematicians are.
   -- Dr. Burchard, math professor at OSU

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]