[Insight-developers] compile erros under linux

Jisung Kim bahrahm@yahoo.com
Tue, 26 Jun 2001 10:24:45 -0700 (PDT)


The following statement came from the ANIS C++ 
"December 1996 Working Paper"

"There  is  no semantic difference between class and
typename in a template-parameter."  

If I understand it correctly, even though you used the
typename at the template parameter declaration, you 
should you typename every time you use types from the
template paramter (typename T::AVariableType)

--- Damion Shelton <dmsst59+@pitt.edu> 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


=====
Jisung Kim
bahrahm@yahoo.com
106 Mason Farm Rd.
129 Radiology Research Lab., CB# 7515
Univ. of North Carolina at Chapel Hill
Chapel Hill, NC 27599-7515

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/