[vtkusers] vtk 4.2 compilation error, linux, vtkBMPRead.cxx

Dongbai Guo guodongbai at gmail.com
Wed Mar 16 23:06:56 EST 2005


Anybody knows a workaround?

thx
Db.

/data/dev/public/vtk/vtk-4.2_linux/IO/vtkBMPReader.cxx: In function 
`void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = 
double]':
/data/dev/public/vtk/vtk-4.2_linux/IO/vtkBMPReader.cxx:545:   
instantiated from here
/data/dev/public/vtk/vtk-4.2_linux/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]
/data/dev/public/vtk/vtk-4.2_linux/IO/vtkBMPReader.cxx:507: note: 
candidate 2: operator+(std::streamoff, long int) <built-in>
/data/dev/public/vtk/vtk-4.2_linux/IO/vtkBMPReader.cxx:545:   
instantiated from here
/data/dev/public/vtk/vtk-4.2_linux/IO/vtkBMPReader.cxx:511: 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:




More information about the vtkusers mailing list