[Insight-developers] A lot of errors on WinNT
Luis Ibanez
ibanez@choroid.cs.unc.edu
Mon, 6 Aug 2001 18:00:45 -0400 (EDT)
Yinpeng,
Major changes are on the way, we remove all the RegistrationTransform
classes, and move their functionality to the Transform classes.
Transforms now have SetParameters() and GetJacobian() methods. They
are also deriving from itkObject, so using smart pointers.
Optimizer have been modified to manage the scaling that was previously
done by RegistrationTransforms.
I'm doing this changes on Linux, and seems that some of them are
not holding VC++ standards. The critical point is the AffineTransform
that is used in a lot of places on the toolkit.
I'll try to clean this as fast as possible,
my apologies for the inconviniences
Note however that it is much better now, that how it was on
saturday and sunday :-)
Luis
--------------------
On Mon, 6 Aug 2001, Yinpeng Jin wrote:
> Tons of complier errors after a fresh checkout (as listed below), any ideas?
>
> --------------------Configuration: itkVoronoiSegmentationImageFilterTest -
> Win32 Debug--------------------
> Performing Custom Build Step on
> "C:/ITK/Insight/Testing/Code/Algorithms/CMakeLists.txt"
> Compiling...
> itkVoronoiSegmentationImageFilterTest.cxx
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(652) : error C2143: syntax
> error : missing ',' before '&'
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(652) : error C2059: syntax
> error : '&'
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(675) : error C2244:
> 'AffineTransform<TScalarType,TParameters,TParameters,TJacobianType>::SetPara
> meters' : unable to resolve function overload
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(679) : error C2954:
> template definitions cannot nest
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(681) : error C2039:
> 'JacobianType' : is not a member of
> 'AffineTransform<TScalarType,TParameters,TParameters,TJacobianType>'
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(681) : error C2143: syntax
> error : missing ';' before '&'
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(681) : error C2734:
> 'JacobianType' : const object must be initialized if not extern
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(681) : error C2734:
> 'JacobianType' : const object must be initialized if not extern
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(681) : error C2059: syntax
> error : ';'
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(682) : error C2065:
> 'ScalarType' : undeclared identifier
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(682) : error C2065:
> 'NDimensions' : undeclared identifier
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(682) : error C2065:
> 'TParameters' : undeclared identifier
> C:/ITK/Insight/Code/Common\itkAffineTransform.txx(682) : error C2065:
> 'TJacobianType' : undeclared identifier
> C:/ITK/Insight/Code/Common\itkContinuousIndex.h(67) : error C2954: template
> definitions cannot nest
> C:/ITK/Insight/Code/Common\itkContinuousIndex.h(115) : error C2146: syntax
> error : missing ';' before identifier 'ContinuousIndex'
> C:/ITK/Insight/Code/Common\itkContinuousIndex.h(133) : see reference
> to class template instantiation
> 'itk::ContinuousIndex<TCoordRep,`template-parameter259'>' being compiled
> C:/ITK/Insight/Code/Common\itkImage.h(186) : error C2039: 'OffsetType' : is
> not a member of 'AffineTransform<double,1,class itk::Point<double,2>,class
> itk::Matrix<double,1,2> >'
> C:/ITK/Insight/Code/Common\itkImage.h(454) : see reference to class
> template instantiation 'itk::Image<TPixel,VImageDimension,TImageTraits>'
> being compiled
> C:/ITK/Insight/Code/Common\itkImage.h(191) : error C2059: syntax error :
> 'return'
> C:/ITK/Insight/Code/Common\itkImage.h(454) : see reference to class
> template instantiation 'itk::Image<TPixel,VImageDimension,TImageTraits>'
> being compiled
> C:/ITK/Insight/Code/Common\itkImage.h(191) : error C2238: unexpected
> token(s) preceding ';'
> C:/ITK/Insight/Code/Common\itkImage.h(454) : see reference to class
> template instantiation 'itk::Image<TPixel,VImageDimension,TImageTraits>'
> being compiled
> C:/ITK/Insight/Code/Common\itkImage.txx(65) : error C2995:
> 'ImageBase<VImageDimension>::ImageBase<VImageDimension>' : template function
> has already been defined
> C:/ITK/Insight/Code/Common\itkImageBase.h(309) : see declaration of
> 'ImageBase<VImageDimension>::ImageBase<VImageDimension>'
> C:/ITK/Insight/Code/Common\itkImage.txx(75) : error C2995:
> 'ImageBase<VImageDimension>::~ImageBase<VImageDimension>' : template
> function has already been defined
> C:/ITK/Insight/Code/Common\itkImageBase.h(310) : see declaration of
> 'ImageBase<VImageDimension>::~ImageBase<VImageDimension>'
> C:/ITK/Insight/Code/Common\itkImage.txx(82) : error C2039: 'Allocate' : is
> not a member of 'Image<TPixel,VImageDimension,TImageTraits>'
> C:/ITK/Insight/Code/Common\itkImage.txx(98) : error C2039: 'SetSpacing' : is
> not a member of 'Image<TPixel,VImageDimension,TImageTraits>'
> C:/ITK/Insight/Code/Common\itkImage.txx(122) : error C2039: 'SetSpacing' :
> is not a member of 'Image<TPixel,VImageDimension,TImageTraits>'
> C:/ITK/Insight/Code/Common\itkImage.txx(151) : error C2995: 'GetSpacing' :
> template function has already been defined
> C:/ITK/Insight/Code/Common\itkImageBase.h(161) : see declaration of
> 'GetSpacing'
> C:/ITK/Insight/Code/Common\itkImage.txx(160) : error C2039: 'SetOrigin' : is
> not a member of 'Image<TPixel,VImageDimension,TImageTraits>'
> C:/ITK/Insight/Code/Common\itkImage.txx(185) : error C2039: 'SetOrigin' : is
> not a member of 'Image<TPixel,VImageDimension,TImageTraits>'
> C:/ITK/Insight/Code/Common\itkImage.txx(210) : error C2039: 'SetOrigin' : is
> not a member of 'Image<TPixel,VImageDimension,TImageTraits>'
> C:/ITK/Insight/Code/Common\itkImage.txx(210) : error C2143: syntax error :
> missing ',' before '&'
> C:/ITK/Insight/Code/Common\itkImage.txx(210) : error C2059: syntax error :
> '&'
> C:/ITK/Insight/Code/Common\itkImage.txx(238) : error C2995: 'GetOrigin' :
> template function has already been defined
> C:/ITK/Insight/Code/Common\itkImageBase.h(169) : see declaration of
> 'GetOrigin'
> C:/ITK/Insight/Code/Common\itkImage.txx(243) : error C2039: 'Pointer' : is
> not a member of 'AffineTransform<double,1,class itk::Point<double,2>,class
> itk::Matrix<double,1,2> >'
> C:/ITK/Insight/Code/Common\itkImage.txx(244) : error C2039:
> 'GetIndexToPhysicalTransform' : is not a member of
> 'Image<TPixel,VImageDimension,TImageTraits>'
> C:/ITK/Insight/Code/Common\itkImage.txx(244) : error C2146: syntax error :
> missing ';' before identifier 'GetIndexToPhysicalTransform'
> C:/ITK/Insight/Code/Common\itkImage.txx(244) : error C2501: 'Pointer' :
> missing storage-class or type specifiers
> C:/ITK/Insight/Code/Common\itkImage.txx(244) : error C2059: syntax error :
> ';'
> C:/ITK/Insight/Code/Common\itkImage.txx(269) : error C2954: template
> definitions cannot nest
> C:/ITK/Insight/Code/Common\itkImage.txx(271) : error C2039: 'Pointer' : is
> not a member of 'AffineTransform<double,1,class itk::Point<double,2>,class
> itk::Matrix<double,1,2> >'
> C:/ITK/Insight/Code/Common\itkImage.txx(272) : error C2039:
> 'GetPhysicalToIndexTransform' : is not a member of
> 'Image<TPixel,VImageDimension,TImageTraits>'
> C:/ITK/Insight/Code/Common\itkImage.txx(272) : error C2146: syntax error :
> missing ';' before identifier 'GetPhysicalToIndexTransform'
> C:/ITK/Insight/Code/Common\itkImage.txx(272) : error C2501: 'Pointer' :
> missing storage-class or type specifiers
> C:/ITK/Insight/Code/Common\itkImage.txx(272) : error C2086: 'Pointer' :
> redefinition
> C:/ITK/Insight/Code/Common\itkImage.txx(272) : error C2059: syntax error :
> ';'
> C:/ITK/Insight/Code/Common\itkImage.txx(296) : error C2954: template
> definitions cannot nest
> C:/ITK/Insight/Code/Common\itkImage.txx(323) : error C2995:
> 'CopyInformation' : template function has already been defined
> C:/ITK/Insight/Code/Common\itkImageBase.h(298) : see declaration of
> 'CopyInformation'
> C:/ITK/Insight/Code/Common\itkImage.txx(337) : error C2995: 'PrintSelf' :
> template function has already been defined
> C:/ITK/Insight/Code/Common\itkImageBase.h(313) : see declaration of
> 'PrintSelf'
> Error executing cl.exe.
>
> itkVoronoiSegmentationImageFilterTest.exe - 45 error(s), 0 warning(s)
>
>
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
>
--
Luis Ibanez CB#: 7060
Research Assistan Professor phone: (919) 843 5436
Division of Neurosurgery fax: (919) 966 6627
University of North Carolina at Chapel Hill email: ibanez@cs.unc.edu
Chapel Hill, NC 27599-7060 http://www.cs.unc.edu/~ibanez