[Insight-users] Problem compiling with ITK 3.16.0 in Linux

Bill Lorensen bill.lorensen at gmail.com
Thu Oct 15 23:55:09 EDT 2009


Luis,

Perhaps the const correctness changes you made to itkPasteImageFilter
are not bacward compatible?

Alfonso,

How are you using this class? Our intent is to not break backward compatibility.

Bill

2009/10/14 Alfonso Castro Martinez <alfonsocastro at udc.es>:
> Hi.
>
> I have a program to preprocess lung TACs made with ITK. I don't have problems
> compiling this program in OpenSuSE 11.1 x86_64 with ITK 3.12.0 but when I
> compile it with ITK 3.16.0. I obtain the next error:
>
> /toolkits/InsightToolkit-3.16.0/Code/BasicFilters/itkPasteImageFilter.txx:46:
> error: expected ‘,’ or ‘...’ before ‘*’ token
> /toolkits/InsightToolkit-3.16.0/Code/BasicFilters/itkPasteImageFilter.txx:46:
> error: ISO C++ forbids declaration of ‘SourceImageType’ with no type
> /toolkits/InsightToolkit-3.16.0/Code/BasicFilters/itkPasteImageFilter.txx:46:
> error: prototype for ‘void itk::PasteImageFilter<TInputImage, TSourceImage,
> TOutputImage>::SetSourceImage(int)’ does not match any in class
> ‘itk::PasteImageFilter<TInputImage, TSourceImage, TOutputImage>’
> /mia/itk/preprocesado tac pulmon/Codigo/src/itkPasteImageFilter.h:53: error:
> candidate is: void itk::PasteImageFilter<TInputImage, TSourceImage,
> TOutputImage>::SetSourceImage(TSourceImage*)
> /toolkits/InsightToolkit-3.16.0/Code/BasicFilters/itkPasteImageFilter.txx:55:
> error: prototype for ‘const typename itk::PasteImageFilter<TInputImage,
> TSourceImage, TOutputImage>::SourceImageType*
> itk::PasteImageFilter<TInputImage, TSourceImage,
> TOutputImage>::GetSourceImage() const’ does not match any in class
> ‘itk::PasteImageFilter<TInputImage, TSourceImage, TOutputImage>’
> /mia/itk/preprocesado tac pulmon/Codigo/src/itkPasteImageFilter.h:54: error:
> candidate is: const TSourceImage* itk::PasteImageFilter<TInputImage,
> TSourceImage, TOutputImage>::GetSourceImage()
> /toolkits/InsightToolkit-3.16.0/Code/BasicFilters/itkPasteImageFilter.txx:65:
> error: expected ‘,’ or ‘...’ before ‘*’ token
> /toolkits/InsightToolkit-3.16.0/Code/BasicFilters/itkPasteImageFilter.txx:65:
> error: ISO C++ forbids declaration of ‘InputImageType’ with no type
> /toolkits/InsightToolkit-3.16.0/Code/BasicFilters/itkPasteImageFilter.txx:65:
> error: prototype for ‘void itk::PasteImageFilter<TInputImage, TSourceImage,
> TOutputImage>::SetDestinationImage(int)’ does not match any in class
> ‘itk::PasteImageFilter<TInputImage, TSourceImage, TOutputImage>’
> /mia/itk/preprocesado tac pulmon/Codigo/src/itkPasteImageFilter.h:51: error:
> candidate is: void itk::PasteImageFilter<TInputImage, TSourceImage,
> TOutputImage>::SetDestinationImage(TInputImage*)
> /toolkits/InsightToolkit-3.16.0/Code/BasicFilters/itkPasteImageFilter.txx:74:
> error: prototype for ‘const typename itk::PasteImageFilter<TInputImage,
> TSourceImage, TOutputImage>::InputImageType*
> itk::PasteImageFilter<TInputImage, TSourceImage,
> TOutputImage>::GetDestinationImage() const’ does not match any in class
> ‘itk::PasteImageFilter<TInputImage, TSourceImage, TOutputImage>’
>
> Can some help me, please?
>
> Thanks in advance.
>
> Alfonso Castro Martinez
> Dept. of Information and Communication Technologies
> University of A Coruna
> Spain
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list