[vtkusers] Compile error under AIX 4.3

Johnny Norris jnorris at mcs.anl.gov
Thu Aug 30 16:41:45 EDT 2001


Once upon a time, David Gobbi wrote:
> On Thu, 30 Aug 2001, Joey Mukherjee wrote:
> > On Thu, 30 Aug 2001, Johnny Norris wrote:
> > >I'm trying to compile a nightly release of VTK on an IBM SP-2 with
> > >AIX 4.3 and gcc 2.95.2, and I get the following compile error:
> > >
> > >vtkImageReslice.cxx: In function `void
> > > vtkOptimizedPermuteExecuteCubic(vtkImageReslice *, vtkImageData *, T *,
> > > vtkImageData *, T *, int *, int, vtkMatrix4x4 *)':
> > >vtkImageReslice.cxx:2856: parse error before `100'
> > >
> > >Line 2856 of imaging/vtkImageReslice.cxx is
> > >    int hz = high[2][idZ];
> > >so I'm not sure what it's complaining about.  Has anyone else managed to
> > >compile VTK under AIX?
> >
> > Its a #define gone awry.  My guess is "high" is defined somewhere and AIX
> > is having a problem with it.
>
> My guess is that Joey's guess is correct.  Do a search/replace of high
> and see if that helps (and email me back if it does).  Also, upgrade to
> gcc 2.95.3 if you can, it fixed a large number of bugs in 2.95.2.

It wasn't "high," it was "hz" that was causing the problems.  I renamed all
two occurances of it and everything compiled.  Thanks!

John
-- 
John Norris
Research Programmer
Center for Simulation of Advanced Rockets
http://www.uiuc.edu/ph/www/jnorris




More information about the vtkusers mailing list