[vtkusers] Can't compile 5.2.1 on fresh Ubuntu 8.10 install. Error in vtkAbstractArray

Paul massivemonkeymayhem at gmail.com
Wed Mar 18 13:38:03 EDT 2009


I haven't had any compile problems that I couldn't work out in the past, but
I'm a bit puzzled over this one.

Running fresh, updated Ubuntu 8.10 64bit, gcc version 4.3.2.

/home/pd/Software/vtk-5.2.1/Common/vtkAbstractArray.cxx: In member function
‘virtual void vtkAbstractArray::PrintSelf(std::ostream&, vtkIndent)’:
/home/pd/Software/vtk-5.2.1/Common/vtkAbstractArray.cxx:251: error:
ambiguous overload for ‘operator<<’ in ‘std::operator<< [with _Traits =
std::char_traits<char>](((std::basic_ostream<char, std::char_traits<char>
>&)((std::ostream*)operator<<(((std::ostream&)((std::ostream*)os)), ((const
vtkIndent&)((const vtkIndent*)(& indent)))))), ((const char*)"Size: ")) <<
((vtkAbstractArray*)this)->vtkAbstractArray::Size’
/usr/include/c++/4.3/ostream:112: note: candidates are:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(std::basic_ostream<_CharT, _Traits>&
(*)(std::basic_ostream<_CharT, _Traits>&)) [with _CharT = char, _Traits =
std::char_traits<char>] <near match>
/usr/include/c++/4.3/ostream:121: note:
std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
_Traits>::operator<<(std::basic_ios<_CharT, _Traits>&
(*)(std::basic_ios<_CharT, _Traits>&)) [with _CharT = char, _Traits =
std::char_traits<char>] <near match>
...
etc
...

I get the same error with VTK nightly (March 17 2009)

Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090318/c7a03a35/attachment.htm>


More information about the vtkusers mailing list