[Insight-developers] ITK with Python wrapping yielding build error on gcc 2.95.4 (Debian 3.0)

William A. Hoffman billlist at nycap.rr.com
Wed Jul 14 12:31:27 EDT 2004


I have committed the change, give it a try.
Would you like to contribute a dashboard for gcc 2.95 with wrapping on?

-Bill


At 11:11 AM 7/14/2004, William A. Hoffman wrote:
>That looks like a bad choice of names.  Those namespaces are only
>seen at wrapping time by gccxml, so they should not conflict with too
>much stuff.  However, a common stl name like vector is obviously a problem.
>I have changed it to itkvector, thanks for the report.  I will check it
>in soon.
>
>
>-Bill
>
>
>
>
>At 10:16 AM 7/14/2004, Charl P. Botha wrote:
>>Building the latest ITK CVS on Debian 3.0 with gcc 2.95.4, I get the following error:
>>
>>In file included from /home/cpbotha/DoNotBackup/build/Insight-HEAD/Wrapping/CSwi
>>g/Common/wrap_ITKInterpolators.cxx:24:
>>/home/cpbotha/DoNotBackup/build/Insight-HEAD/Wrapping/CSwig/itkCSwigImages.h:31:
>> error: `
>>   vector' redeclared as different kind of symbol
>>/usr/include/g++-3/stl_vector.h:153: error: previous declaration of `
>>   template<class _Tp, class _Alloc> class vector'
>>
>>Checking itkCSwigImage.h at line 31, we have the following:
>>namespace vector
>>{
>>  typedef itk::Vector< float,  2>  F2;
>>  typedef itk::Vector< float,  3>  F3;
>>  typedef itk::Vector< double, 2>  D2;
>>  typedef itk::Vector< double, 3>  D3;
>>}
>>
>>Is the compiler supposed to support the re-use of "vector" as a namespace?  It seems that 2.95 doesn't like this... does anyone have a possible work-around?
>>
>>Thanks,
>>charl
>>
>>-- 
>>charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
>>_______________________________________________
>>Insight-developers mailing list
>>Insight-developers at itk.org
>>http://www.itk.org/mailman/listinfo/insight-developers
>
>_______________________________________________
>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