[Insight-developers] itkPolygonCell fix to build on gcc 2.95

Charl P. Botha cpbotha at gmail.com
Thu Nov 18 10:47:27 EST 2004


Dear developers,

With an ITK checkout of 12 november, I had to add "#include <deque>"
(diff attached for completeness) to the itkPolygonCell.h source to
prevent the compiler error below (Debian 3.0, gcc 2.95):

Building wrap_itkVoronoiSegmentationImageFilter.xml from  /home/cpbotha/DoNotBac
kup/build/Insight-gcc/Wrapping/CSwig/Algorithms/wrap_itkVoronoiSegmentationImage
Filter.xml...
In file included from /home/cpbotha/DoNotBackup/build/Insight/Code/Algorithms/it
kVoronoiDiagram2D.h:28,
                 from /home/cpbotha/DoNotBackup/build/Insight/Code/Algorithms/it
kVoronoiSegmentationImageFilterBase.h:21,
                 from /home/cpbotha/DoNotBackup/build/Insight/Code/Algorithms/it
kVoronoiSegmentationImageFilter.h:22,
                 from /home/cpbotha/DoNotBackup/build/Insight/Wrapping/CSwig/Alg
orithms/wrap_itkVoronoiSegmentationImageFilter.cxx:18:
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkPolygonCell.h:70: error: 
ISO
   C++ forbids declaration of `deque' with no type
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkPolygonCell.h:70: error: 
template-id
   `deque<itk::FixedArray<int, 2> >' used as a declarator
/home/cpbotha/DoNotBackup/build/Insight/Code/Common/itkPolygonCell.h:70: error: 
syntax
   error before `;' token

Can I just commit this (I'm supposed to stick to the Wrapping
subdirectories) or is there something deeper going on?

Thanks,
Charl

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
-------------- next part --------------
Index: itkPolygonCell.h
===================================================================
RCS file: /cvsroot/Insight/Insight/Code/Common/itkPolygonCell.h,v
retrieving revision 1.30
diff -u -r1.30 itkPolygonCell.h
--- itkPolygonCell.h	10 Oct 2004 17:50:42 -0000	1.30
+++ itkPolygonCell.h	18 Nov 2004 15:42:56 -0000
@@ -25,7 +25,7 @@
 #include "itkPoint.h"
 #include <vector>
 #include <queue>
-
+#include <deque>
 
 namespace itk
 {


More information about the Insight-developers mailing list