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

Luis Ibanez luis.ibanez at kitware.com
Sat Nov 20 18:49:26 EST 2004


Hi Charl,

At first view there is no reason why we couldn't
include the header for 'deque'.

You may want to give it a try, committing the change
and see how well it goes with all the other platforms.


    Luis


---------------------
Charl P. Botha wrote:
> 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
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 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
>  {
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers






More information about the Insight-developers mailing list