[Insight-users] compilation error: itkConstShapedNeighborhoodIterator

Eduardo Suárez eduardo at ctm . ulpgc . es
Tue, 05 Aug 2003 14:32:23 +0100


Does someone get into trouble compiling 
itkConstShapedNeighborhoodIterator.txx?

ITK 1.2.0 release.

# gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/specs
Configured with: /root/gcc-3.0.3/configure --enable-threads=posix
Thread model: posix
gcc version 3.0.3


Thanks in advance,
-Eduardo

-------------------------------------------------------------------
Building object file itkConstShapedNeighborhoodIteratorTest.o...
~/Code/Common/itkConstShapedNeighborhoodIterator.txx: In
    member function `itk::ConstShapedNeighborhoodIterator<TImage,
    TBoundaryCondition>& itk::ConstShapedNeighborhoodIterator<TImage,
    TBoundaryCondition>::operator++() [with TImage = TestImageType,
    TBoundaryCondition = 
itk::ZeroFluxNeumannBoundaryCondition<TestImageType>]':
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:80: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:114: increment
    of read-only location
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:80: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:118: increment
    of read-only location
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:80: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:128: assignment
    of read-only location
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:80: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:130: assignment
    of read-only location
~/Code/Common/itkConstShapedNeighborhoodIterator.txx: In
    member function `itk::ConstShapedNeighborhoodIterator<TImage,
    TBoundaryCondition>& itk::ConstShapedNeighborhoodIterator<TImage,
    TBoundaryCondition>::operator--() [with TImage = TestImageType,
    TBoundaryCondition = 
itk::ZeroFluxNeumannBoundaryCondition<TestImageType>]':
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:88: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:146: decrement
    of read-only location
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:88: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:150: decrement
    of read-only location
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:88: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:159: assignment
    of read-only location
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:88: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:161: assignment
    of read-only location
~/Code/Common/itkConstShapedNeighborhoodIterator.txx: In
    member function `itk::ConstShapedNeighborhoodIterator<TImage,
    TBoundaryCondition>& itk::ConstShapedNeighborhoodIterator<TImage,
    TBoundaryCondition>::operator+=(typename 
itk::NeighborhoodIterator<TImage,
    TBoundaryCondition>::OffsetType&) [with TImage = TestImageType,
    TBoundaryCondition = 
itk::ZeroFluxNeumannBoundaryCondition<TestImageType>]':
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:94: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:197: assignment
    of read-only location
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:94: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:201: assignment
    of read-only location
~/Code/Common/itkConstShapedNeighborhoodIterator.txx: In
    member function `itk::ConstShapedNeighborhoodIterator<TImage,
    TBoundaryCondition>& itk::ConstShapedNeighborhoodIterator<TImage,
    TBoundaryCondition>::operator-=(typename 
itk::NeighborhoodIterator<TImage,
    TBoundaryCondition>::OffsetType&) [with TImage = TestImageType,
    TBoundaryCondition = 
itk::ZeroFluxNeumannBoundaryCondition<TestImageType>]':
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:98: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:234: assignment
    of read-only location
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:98: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:238: assignment
    of read-only location
~/Code/Common/itkConstShapedNeighborhoodIterator.txx: In
    member function `void itk::ConstShapedNeighborhoodIterator<TImage,
    TBoundaryCondition>::ActivateIndex(unsigned int) [with TImage =
    TestImageType, TBoundaryCondition =
    itk::ZeroFluxNeumannBoundaryCondition<TestImageType>]':
~/Code/Common/itkConstShapedNeighborhoodIterator.h:240:   instantiated 
from `void itk::ConstShapedNeighborhoodIterator<TImage, 
TBoundaryCondition>::ActivateOffset(typename 
itk::NeighborhoodIterator<TImage, TBoundaryCondition>::OffsetType&) 
[with TImage = TestImageType, TBoundaryCondition = 
itk::ZeroFluxNeumannBoundaryCondition<TestImageType>]'
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:76: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:72: assignment
    of read-only location
~/Code/Common/itkConstShapedNeighborhoodIterator.h:240:   instantiated 
from `void itk::ConstShapedNeighborhoodIterator<TImage, 
TBoundaryCondition>::ActivateOffset(typename 
itk::NeighborhoodIterator<TImage, TBoundaryCondition>::OffsetType&) 
[with TImage = TestImageType, TBoundaryCondition = 
itk::ZeroFluxNeumannBoundaryCondition<TestImageType>]'
~/Testing/Code/Common/itkConstShapedNeighborhoodIteratorTest.cxx:76: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:74: assignment
    of read-only location
make[7]: *** [itkConstShapedNeighborhoodIteratorTest.o] Error 1


Building object file itkShapedNeighborhoodIteratorTest.o...
~/Code/Common/itkConstShapedNeighborhoodIterator.txx: In
    member function `void itk::ConstShapedNeighborhoodIterator<TImage,
    TBoundaryCondition>::ActivateIndex(unsigned int) [with TImage =
    TestImageType, TBoundaryCondition =
    itk::ZeroFluxNeumannBoundaryCondition<TestImageType>]':
~/Code/Common/itkConstShapedNeighborhoodIterator.h:240:   instantiated 
from `void itk::ConstShapedNeighborhoodIterator<TImage, 
TBoundaryCondition>::ActivateOffset(typename 
itk::NeighborhoodIterator<TImage, TBoundaryCondition>::OffsetType&) 
[with TImage = TestImageType, TBoundaryCondition = 
itk::ZeroFluxNeumannBoundaryCondition<TestImageType>]'
~/Testing/Code/Common/itkShapedNeighborhoodIteratorTest.cxx:55: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:72: assignment
    of read-only location
~/Code/Common/itkConstShapedNeighborhoodIterator.h:240:   instantiated 
from `void itk::ConstShapedNeighborhoodIterator<TImage, 
TBoundaryCondition>::ActivateOffset(typename 
itk::NeighborhoodIterator<TImage, TBoundaryCondition>::OffsetType&) 
[with TImage = TestImageType, TBoundaryCondition = 
itk::ZeroFluxNeumannBoundaryCondition<TestImageType>]'
~/Testing/Code/Common/itkShapedNeighborhoodIteratorTest.cxx:55: 
instantiated from here
~/Code/Common/itkConstShapedNeighborhoodIterator.txx:74: assignment
    of read-only location
--------------------------------------------------------------------------