[vtkusers] VTK + ITK + IRIX CC problems

Jean M. Favre jfavre at cscs.ch
Tue Dec 17 02:49:31 EST 2002


Jarek Sacha wrote:
> 
> General question: how to setup VTK+ITK with IRIX CC compiler?
> 
> A am using IRIX 6.5, CC 7.3, cmake 1.4.7, and recent VTK and ITK from
> CVS. ITK requires that cmake variable VTK_USE_ANSI_STDLIB be set on. If it
> is set to on, CC reports errors building IO/vtkBMPReader.cxx:
> 
> cc-1324 CC: ERROR File = /imaging/programs/src/VTK/IO/vtkBMPReader.cxx,
> Line = 506
>   More than one operator "+" matches the specified operands.
> 
>             Built-in operator "arithmetic + arithmetic" has an
> overloading
>                       ambiguity.

I have the same problem under SGI and my fix is to edit the few files
with problems and break out the expression with the "ambiguity" in
several statements. That is not pretty and I was waiting for a compiler
upgrade to see if it would fix it.

Example from BMPReader.cxx

      tmp = self->GetFile()->tellg();
      tmp += streamSkip0;
      self->GetFile()->seekg(tmp, ios::beg);

I was able to do a full compile after editing these files. (SGI Octane
CC 7.3)

-- 
Dr. Jean M. Favre,                            email:favre at cscs.ch
http://www.cscs.ch/people/Favre.html
CSCS, Swiss Center for Scientific Computing | Tel:  +41 (91) 610.82.40
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82



More information about the vtkusers mailing list