[Insight-developers] Obscure g++ error message
Paul Hughett
hughett@mercur.uphs.upenn.edu
Wed, 2 May 2001 16:17:06 -0400
I am trying to write a test program for a new ResampleImageFilter
class and am getting a g++ error message that my C++ knowledge is
insufficient to interpret. It looks like someone, somewhere is
declaring `this' to be const, but I can't locate the somewhere or
someone; it's also possible that I've completely misunderstood the
problem. Could anyone interpret this error for me?
Many thanks.
Note also that public.kitware.com seems to be 3 minutes out of sync
with my computer (which uses xntp to synchronize with GPS time and
claims to be within 18 ms of the true time).
Paul Hughett
make[4]: *** Warning: File `itkResampleImageTest.cxx' has modification time in the future (2001-05-02 16:12:06 > 2001-05-02 16:09:02)
c++ -g -O2 -I/home/hughett/work/Insight/Testing/Code/BasicFilters -I/home/hughett/work/Insight -I/home/hughett/work/Insight/Code/Numerics -I/home/hughett/work/Insight/Code/Common -I/home/hughett/work/Insight/Code/Numerics/vxl -I/home/hughett/work/Insight/Code/Numerics/vxl -I/home/hughett/work/Insight/Code/Numerics/vxl/vcl -I/home/hughett/work/Insight/Code/Numerics/vxl/vcl -I/home/hughett/work/Insight/Code/BasicFilters -c itkResampleImageTest.cxx -o itkResampleImageTest.o
/home/hughett/work/Insight/Code/BasicFilters/itkResampleImageFilter.txx: In method `void itk::ResampleImageFilter<itk::PhysicalImage<itk::Scalar<short int>,2,itk::DefaultImageTraits<itk::Scalar<short int>,2,itk::ValarrayImageContainer<long unsigned int,itk::Scalar<short int> > > >,itk::PhysicalImage<itk::Scalar<short int>,2,itk::DefaultImageTraits<itk::Scalar<short int>,2,itk::ValarrayImageContainer<long unsigned int,itk::Scalar<short int> > > > >::ThreadedGenerateData(const itk::ImageRegion<2> &, int)':
/home/hughett/work/Insight/Code/Numerics/vxl/vnl/vnl_matrix.txx:1409: instantiated from here
/home/hughett/work/Insight/Code/BasicFilters/itkResampleImageFilter.txx:113: passing `const itk::LinearInterpolateImageFunction<itk::PhysicalImage<itk::Scalar<short int>,2,itk::DefaultImageTraits<itk::Scalar<short int>,2,itk::ValarrayImageContainer<long unsigned int,itk::Scalar<short int> > > > >' as `this' argument of `void itk::LinearInterpolateImageFunction<itk::PhysicalImage<itk::Scalar<short int>,2,itk::DefaultImageTraits<itk::Scalar<short int>,2,itk::ValarrayImageContainer<long unsigned int,itk::Scalar<short int> > > > >::SetInputImage(main()::ShortImage *)' discards qualifiers
make[4]: *** [itkResampleImageTest.o] Error 1