[Insight-users] itkExtractImageFilter.h compiling problem. Solved.
Bug?
Di Xiao
xiaodimailing at hotmail.com
Thu Sep 9 03:23:01 EDT 2004
It seems that we should add
typedef TInputImage InputImageType;
typedef TOutputImage OutputImageType;
in itkExtractImageFilter.h (version 1.8). Then, can pass the compiling.
Am I right:
Xiao Di
Dear all:
I've got a very strange problem while compiling the programm.
Once including itkExtractImageFilter.h (version 1.8) in the program,
compiling will give following errors.
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx: In
member function `virtual void itk::ExtractImageFilter<TInputImage,
TOutputImage>::GenerateOutputInformation()':
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:146:
`
InputImageType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:146:
`
SpacingType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:147:
`
InputImageType' fails to be a typedef or built in type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:147:
warning: ISO
C++ forbids declaration of `inputSpacing' with no type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:148:
`
InputImageType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:148:
`
PointType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:149:
`
InputImageType' fails to be a typedef or built in type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:149:
warning: ISO
C++ forbids declaration of `inputOrigin' with no type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:151:
`
OutputImageType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:151:
`
SpacingType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:151:
`
OutputImageType' fails to be a typedef or built in type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:151:
warning: ISO
C++ forbids declaration of `outputSpacing' with no type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:152:
`
OutputImageType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:152:
`
PointType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:152:
`
OutputImageType' fails to be a typedef or built in type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:152:
warning: ISO
C++ forbids declaration of `outputOrigin' with no type
Any one can give me a reminder what's wrong with me? Not find
the similiar problem and answer in mailinglist.
Thanks,
Xiao Di
_________________________________________________________________
Get cheap fares online with MSN Travel http://www.msn.com.sg/travel/
More information about the Insight-users
mailing list