[vtkusers] Error when compiling VTK4.2.latest

Tore Aurstad toreaur at stud.ntnu.no
Wed Feb 9 12:25:52 EST 2005


When I try to install VTK 4.2 I get errors after

cmake -i

and 

make

The errors lies in the IO directory. The compilation stops at the BMP-
reader and says:
Building object file vtkBMPReader.o...
/usr/local/share/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT =
double]':
/usr/local/share/VTK/IO/vtkBMPReader.cxx:545:   instantiated from here
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that
these are ambiguous, even though the worst conversion for the first is
better than the worst conversion for the second:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c+
+/3.4.2/bits/postypes.h:176: note: candidate 1: std::fpos<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/usr/local/share/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::

... and so on:

make[3]: *** [vtkBMPReader.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_IO] Error 2
make: *** [default_target] Error 2


What is wrong here?






More information about the vtkusers mailing list