[Insight-developers] compile erros under linux
Joshua Cates
cates@cs.utah.edu
Tue, 26 Jun 2001 11:06:59 -0600 (MDT)
Hi,
If TInputImage is your template parameter you'll probably need:
typename TInputImage::SizeType size ...
Josh.
______________________________
Josh Cates
School of Computer Science
University of Utah
On Tue, 26 Jun 2001, Damion Shelton wrote:
> Hi...
>
> I'm in the process of cleaning up some errors that appeared on the
> dashboard. The majority of them were from missing includes, but there are
> several of the following type:
>
> The line of code:
> TInputImage::SizeType size = inputPtr->GetLargestPossibleRegion().GetSize();
>
> ...generates the error:
>
> member function `void itk::BinomialBlurImageFilter<TInputImage,
> /home/kingb/Programs/ABuild/Nightly/Insight/Code/BasicFilters/itkBinomialBlu
> rImageFilter.txx:41: parse
> In file included from
> /home/kingb/Programs/ABuild/Nightly/Insight/Code/BasicFilters/itkDifferenceO
> fGaussiansGradientImageFilter.h:152,
> /home/kingb/Programs/ABuild/Nightly/Insight/Code/BasicFilters/itkDifferenceO
> fGaussiansGradientImageFilter.txx: In
> itk::DifferenceOfGaussiansGradientImageFilter<TInputImage, TScalarType,
> TVectorType>::GenerateData()':
> /home/kingb/Programs/ABuild/Nightly/Insight/Code/BasicFilters/itkDifferenceO
> fGaussiansGradientImageFilter.txx:34: parse
> error before `=' token
> In file included from
> /home/kingb/Programs/ABuild/Nightly/Insight/Code/BasicFilters/itkGradientToM
> agnitudeImageFilter.h:135,
> from
> /home/kingb/Programs/ABuild/Nightly/Insight/Testing/Code/BasicFilters/itkBas
> icFiltersHeaderTest.cxx:44:
> /home/kingb/Programs/ABuild/Nightly/Insight/Code/BasicFilters/itkGradientToM
> agnitudeImageFilter.txx: In
> member function `void itk::GradientToMagnitudeImageFilter<TInputImage,
> TOutputImage>::GenerateData()':
>
> TInputImage has the typename flag in the function declaration, so what's the
> problem? This compiles fine under Windows, and on most of the non-linux Unix
> variants (specifically, this error is on the kitware linux machine).
>
> Any suggestions would be much appreciated.
>
> -Damion-
>
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
>