automake
[Top][All Lists]
Advanced

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

Re: Mixing BUILT_SOURCES, double quote include and separation of source


From: Bob Friesenhahn
Subject: Re: Mixing BUILT_SOURCES, double quote include and separation of source and binary directory
Date: Wed, 30 Mar 2005 10:38:34 -0600 (CST)

On Wed, 30 Mar 2005, Simon Perreault wrote:

On March 30, 2005 10:44, Ralf Wildenhues wrote:
#include "../include/inc.h"

which is not portable, by the way (but I can see if you don't care about
that part of the world).

Why do you say that? That code is being ported from Microsoft's compiler, and
I guess that if it works there and here then it ought to be portable.

There are many meanings of the term "portable". On one hand, the above include is not "portable" since the C standard does not address how to interpret it. On the other, it is not "portable" since it depends on the source code residing in a relative directory to the header, and (possibly) even being compiled in that same directory. If symbolic links are used to create part of the build tree, then it is likely that compilation will fail due to how symbolic links are used.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




reply via email to

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