Hi,<br><br>I am trying to define a new class.&nbsp;&nbsp; A Hamming window filter.<br><br>The header file is here<br>&nbsp;<a href="http://rafb.net/p/o2YIRU60.html">http://rafb.net/p/o2YIRU60.html</a><br><br>The .txx is here<br>&nbsp;<a href="http://rafb.net/p/f3WY1P35.html">http://rafb.net/p/f3WY1P35.html</a><br>
<br>Example main here<br><a href="http://rafb.net/p/d74LAO74.html">http://rafb.net/p/d74LAO74.html</a><br><br>With CMakeLists.txt here<br>&nbsp;<a href="http://rafb.net/p/1lU6w430.html">http://rafb.net/p/1lU6w430.html</a><br><br>
But, I get tons of errors during compilation like<br>&quot;<br>In file included from /usr/include/InsightToolkit/IO/itkImageFileReader.txx:22,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/include/InsightToolkit/IO/itkImageFileReader.h:188,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /tmp/hamtest/test.cpp:3:<br>/usr/include/InsightToolkit/IO/itkImageIOFactory.h:43: error: 'itk::ImageIOBase' has not been declared<br>/usr/include/InsightToolkit/IO/itkImageIOFactory.h:43: error: ISO C++ forbids declaration of 'Pointer' with no type<br>
/usr/include/InsightToolkit/IO/itkImageIOFactory.h:43: error: typedef name may not be a nested-name-specifier<br>/usr/include/InsightToolkit/IO/itkImageIOFactory.h:43: error: expected ';' before 'ImageIOBasePointer'<br>/usr/include/InsightToolkit/IO/itkImageIOFactory.h:49: error: 'ImageIOBasePointer' does not name a type<br>
In file included from /usr/include/InsightToolkit/Common/itkRGBPixel.h:173,<br>.....<br>.....<br>more nonsense<br>....<br>you suck <br>....<br>you are a newb.<br>....<br>&quot;<br><br>Of course there is a big fat #include itkImageIOBase.h at the start of itkImageIOFactory.h<br>
<br>Any insights on my problem? ;-)&nbsp; ( ha ha ... ha :P)<br><br>Using ITK-3.10.0, gcc-4.3.2, cmake-2.6.2<br><br>Thanks.<br>