[Insight-users] compilation error with g++-4.0

Luis Ibanez luis.ibanez at kitware.com
Tue Jul 12 11:21:19 EDT 2005



Hi Amadeus,


Please post your questions about VTK to the vtkusers list.


  You can suscribe to the VTK list at the following link:

    http://public.kitware.com/mailman/listinfo/vtkusers




If you have any questions about ITK we will be happy to help
you with those in this (insight-users) list.



Regards,


     Luis



================================


Amadeus W. M. wrote:
> Trying to compile VTK to begin with, on a newly installed Fedora Core 4
> with g++-4.0 and I'm getting this sort of errors (which I expect to see in
> itk too):
> 
> /home/silviu/Insight-2.0.1/VTK/IO/vtkBMPReader.cxx: In function 'void vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [with OT = double]':
> /home/silviu/Insight-2.0.1/VTK/IO/vtkBMPReader.cxx:545:   instantiated from here/home/silviu/Insight-2.0.1/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/4.0.0/../../../../include/c++/4.0.0/bits/postypes.h:175: note: candidate 1: std::fpos<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t]
> /home/silviu/Insight-2.0.1/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2: operator+(std::streamoff, long int) <built-in>
> 
> g++-4.0 is supposed to be much closer to the c++ standard, and definitely
> pickier than previous versions. I looked at the code, but I have no idea
> what "these" can be ambiguous.
> 
> Thanks!
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 





More information about the Insight-users mailing list