automake
[Top][All Lists]
Advanced

[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: Thu, 30 Jun 2005 16:23:19 +0200
User-agent: Mutt/1.4.1i

* overbored wrote on Thu, Jun 30, 2005 at 03:07:35AM CEST:
> How do I tell automake not to pass "-I." to g++/gcc? Thanks in advance.

Quoting the manual:
| `nostdinc'
|      This option can be used to disable the standard `-I' options which
|      are ordinarily automatically provided by Automake.

> (The problem is that this project has a string.h, which conflicts with 
> the standard string.h. Besides, why "-I." in the first place?

So that builds with source tree != build tree work seamlessly with both
provided and generated header files.

> Is it 
> because some people prefer #include <blah> over #include "blah" for 
> their own header files as well?)

Doing that is usually not such a good idea.

Regards,
Ralf




reply via email to

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