[Insight-users] base classes not declared when defining a new class
bill.lorensen at gmail.com
Wed Nov 26 23:25:47 EST 2008
1) You are missing a } to close the namespace in itkHammingWindowImageFilter.txx
2) You should #include <string> in the main program
3) When you reference stl string use std::string.
4) In itkHammingWIndowImageFIlter.txx, this->m_Window is not a pointer so the
this->m_Window->SetSize(window_size) should be
On Wed, Nov 26, 2008 at 8:27 PM, Matthew McCormick (thewtex)
<matt at mmmccormick.com> wrote:
> I am trying to define a new class. A Hamming window filter.
> The header file is here
> The .txx is here
> Example main here
> With CMakeLists.txt here
> But, I get tons of errors during compilation like
> In file included from
> from /tmp/hamtest/test.cpp:3:
> /usr/include/InsightToolkit/IO/itkImageIOFactory.h:43: error:
> 'itk::ImageIOBase' has not been declared
> /usr/include/InsightToolkit/IO/itkImageIOFactory.h:43: error: ISO C++
> forbids declaration of 'Pointer' with no type
> /usr/include/InsightToolkit/IO/itkImageIOFactory.h:43: error: typedef name
> may not be a nested-name-specifier
> /usr/include/InsightToolkit/IO/itkImageIOFactory.h:43: error: expected ';'
> before 'ImageIOBasePointer'
> /usr/include/InsightToolkit/IO/itkImageIOFactory.h:49: error:
> 'ImageIOBasePointer' does not name a type
> In file included from /usr/include/InsightToolkit/Common/itkRGBPixel.h:173,
> more nonsense
> you suck
> you are a newb.
> Of course there is a big fat #include itkImageIOBase.h at the start of
> Any insights on my problem? ;-) ( ha ha ... ha :P)
> Using ITK-3.10.0, gcc-4.3.2, cmake-2.6.2
> Insight-users mailing list
> Insight-users at itk.org
More information about the Insight-users