[Top][All Lists]

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

Re: Best & most portable way to add *paths to headers* & *libraries*???

From: Alexandre Duret-Lutz
Subject: Re: Best & most portable way to add *paths to headers* & *libraries*???
Date: Sat, 19 Apr 2003 00:59:35 +0200
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux)

>>> "Thomas" == Thomas Dickey <address@hidden> writes:

 Thomas> On Sat, Apr 19, 2003 at 12:39:54AM +0200, Alexandre Duret-Lutz wrote:
 >> >>>   <address@hidden> writes:
 >> > If I want to add some /paths to include files/,
 >> > I should just add my -I's to with
 >> > this line right??...
 >> > INCLUDES=-I/path1 -I/path2 -I/path3
 >> `automake -Wall' will tell you to prefer AM_CPPFLAGS
 >> It's also more portable to put a space between each -I and its argument.

 Thomas> hmm - I can recall some old compilers for which this was not true,
 Thomas> and have not encountered any for which it is true (that the space
 Thomas> is required).  perhaps an example would help.

Oops, sorry, you're right.  It's exactly the converse of what I
said: `-I foo' is less portable than `-Ifoo'.

Alexandre Duret-Lutz (going to bed)

reply via email to

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