[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Include paths: no "-I." please

From: Ralf Wildenhues
Subject: Re: Include paths: no "-I." please
Date: Fri, 9 Nov 2007 07:32:25 +0100
User-agent: Mutt/1.5.13 (2006-08-11)


* J.T. Conklin wrote on Fri, Nov 09, 2007 at 05:48:04AM CET:
> overbored <address@hidden> writes:
> > How do I tell automake not to pass "-I." to g++/gcc? Thanks in advance.

Use the nostdinc option:

> > (The problem is that this project has a string.h, which conflicts with
> > the standard string.h. Besides, why "-I." in the first place? Is it
> > because some people prefer #include <blah> over #include "blah" for
> > their own header files as well?)

Almost.  For VPATH builds (source tree != build tree), you want to not
have to differentiate via <> or "" whether the included or the including
file lives in the source or the build tree, respectively.

> I've run into a similar problem with the ACE framework (in my case, it
> only effected systems with case insensitve filesystems), and solved it
> by adding "DEFAULT_INCLUDES=" to the offending  
> As far as I know, it's not documented and may not even be intended
> behavior.  But I'll use it as long as it does what I need.

Yep, overriding DEFAULT_INCLUDES is not documented, so using nostdinc is


reply via email to

[Prev in Thread] Current Thread [Next in Thread]