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

2005-03-31 Thread Simon Perreault
On March 31, 2005 07:56, [EMAIL PROTECTED] wrote: > (*) Hence you don't have to write #include "../include/inc.h" in > main.c, but rather #include , and you can simply write > #include , no matter if built.h is generated or not. Sure, that would work except I can't modify the code itself b

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

2005-03-31 Thread jfasch
> "Simon" == Simon Perreault <[EMAIL PROTECTED]> writes: Simon> Hi, Simon> I have a problem which I figure must be fairly common, although I found no Simon> reference to it anywhere. I think it must be common because the SCons manual Simon> says they fixed it. [1] Anyway... Simon> Let's s

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

2005-03-30 Thread Ralf Wildenhues
* Simon Perreault wrote on Wed, Mar 30, 2005 at 06:13:19PM CEST: > 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 b

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

2005-03-30 Thread Bob Friesenhahn
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

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

2005-03-30 Thread Simon Perreault
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

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

2005-03-30 Thread Ralf Wildenhues
Hi Simon, * Simon Perreault wrote on Wed, Mar 30, 2005 at 04:13:23PM CEST: > > I have a problem which I figure must be fairly common, although I found no > reference to it anywhere. I think it must be common because the SCons manual > says they fixed it. [1] Anyway... Looks like they traded di

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

2005-03-30 Thread Simon Perreault
On March 30, 2005 10:14, Gary V. Vaughan wrote: > AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include Sure, this fixes the problem given in my example. But I can't do that because of this: > > The quick fix is to add the location of inc.h, prefixed with > > $(top_builddir). However

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

2005-03-30 Thread Gary V. Vaughan
Simon Perreault wrote: > Hi, > > I have a problem which I figure must be fairly common, although I found no > reference to it anywhere. I think it must be common because the SCons manual > says they fixed it. [1] Anyway... > > Let's say I have two directories, "src" and "include". I place main.c in

Mixing BUILT_SOURCES, double quote include and separation of source and binary directory

2005-03-30 Thread Simon Perreault
Hi, I have a problem which I figure must be fairly common, although I found no reference to it anywhere. I think it must be common because the SCons manual says they fixed it. [1] Anyway... Let's say I have two directories, "src" and "include". I place main.c in src and inc.h in include. main.