[Insight-users] itkExtractImageFilter.h compiling problem. So lved. Bug?

Lorensen, William E (Research) lorensen at crd.ge.com
Thu Sep 9 07:25:19 EDT 2004


Xiao Di,
Yes this looks like the fix. I'm curious... What compiler are you using?
None of our platforms are seeing this.

Bill

-----Original Message-----
From: Di Xiao [mailto:xiaodimailing at hotmail.com]
Sent: Thursday, September 09, 2004 3:23 AM
To: insight-users at itk.org
Subject: [Insight-users] itkExtractImageFilter.h compiling problem.
Solved. Bug?


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/

_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list