Re: [Radiance-dev] Fix for compilation with gcc >=4.5

2011-02-18 Thread Randolph M. Fritz
Interesting--I would have thought that was a constant, since the value can be calculated at compile time. But then, it is asking a lot of the compiler to provide results consistent at run and compile times in that case. In The Old Days, I suppose a compiler would have just cavalierly ignored

Re: [Radiance-dev] Fix for compilation with gcc >=4.5

2011-02-18 Thread Gregory J. Ward
Thanks Bernd, easily fixed. (Unfortunate choice of constant name...) Cheers, -Greg > From: Bernd Zeimetz > Date: February 18, 2011 8:59:04 AM PST > > Hi, > > building radiance fails with gcc >=4.5 with > rhdobj.c:221:15: error: storage size of 'neighlist' isn't constant > > which is due to t

[Radiance-dev] Fix for compilation with gcc >=4.5

2011-02-18 Thread Bernd Zeimetz
Hi, building radiance fails with gcc >=4.5 with rhdobj.c:221:15: error: storage size of 'neighlist' isn't constant which is due to the fact that using a define like #define NAZI((int)(PI/2.*NALT+.5)) to define the size of an array is not allowed - gcc 4.5 implements various details of