[Insight-developers] Building ITK with STD_DEBUG_MODE

Mathieu Coursolle mcoursolle at rogue-research.com
Fri May 11 12:58:31 EDT 2007


Sorry, I really meant using those flags:

-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC

Thanks.

Mathieu

>What's STD_DEBUG_MODE ? Do you mean -D_GLIBCXX_DEBUG. I cannot find
>any documentation about this -D option
>
>Thanks
>-Mathieu
>
>On 5/11/07, Mathieu Coursolle <mcoursolle at rogue-research.com> wrote:
>> Hi itk developpers,
>>
>> We are currently using ITK in our project and have are running a nightly
>> dashboard:
>> RogueResearch2 / MacOSXTiger-univ
>>
>> However, we would like to use the STL_DEBUG_MODE flag in our project,
>> but it won't work with
>> ITK if it is not build with this flag too.
>>
>> So we add that flag to our dashboard build, but our ITK won't build with
>> it (See error message bellow).
>>
>> So I would like to know if anyone is able to reproduce this problem. We
>> are using gcc 4.0.1.
>>
>> If so, anyone has a clue on how this could be fixed?
>>
>> Thank you!
>>
>> Mathieu
>>
>>
>> ps: We also have a few warnings cause by ITK headers in our projects. I
>> submitted some patch files
>> which fix some of them (Bugs 4952, 4965 and 4966).
>>
>>
>>
>> Linking CXX executable ../../../bin/itkNumericsHeaderTest
>> [ 56%] Built target itkNumericsHeaderTest
>> Scanning dependencies of target itkCommonHeaderTest
>> [ 56%] Building CXX object Code/Numerics/FEM/CMakeFiles/ITKFEM.dir/
>> itkFEMLoadNode.o
>> [ 56%] Building CXX object Testing/Code/Common/CMakeFiles/
>> itkCommonHeaderTest.dir/itkCommonHeaderTest.o
>> /.../Insight/Code/Common/itkConstShapedNeighborhoodIterator.h: In member
>> function 'bool itk::ConstShapedNeighborhoodIterator<TImage,
>> TBoundaryCondition>::ConstIterator::operator!=(const
>> itk::ConstShapedNeighborhoodIterator<TImage,
>> TBoundaryCondition>::ConstIterator&) const':
>> /.../Insight/Code/Common/itkConstShapedNeighborhoodIterator.h:152:
>> error: 'const class __gnu_debug::_Saf
>> e_iterator<__gnu_norm::_List_const_iterator<unsigned int>,
>> __gnu_debug_def::list<unsigned int, std::allocator<unsigned int> > >'
>> has no member named 'operator!='/.../Insight/Code/Common/
>> itkConstShapedNeighborhoodIterator.h: In member function 'bool
>> itk::ConstShapedNeighborhoodIterator<TImage,
>> TBoundaryCondition>::ConstIterator::operator!=(const
>> itk::ConstShapedNeighborhoodIterator<TImage,
>> TBoundaryCondition>::ConstIterator&) const':
>>
>> Build Log line 1279
>>
>> File: Code/Common/itkConstShapedNeighborhoodIterator.h Line: 152CVS
>>
>> /.../Insight/Code/Common/itkConstShapedNeighborhoodIterator.h:152:
>> error: 'const class __gnu_debug::_Saf
>> e_iterator<__gnu_norm::_List_const_iterator<unsigned int>,
>> __gnu_debug_def::list<unsigned int, std::allocator<unsigned int> > >'
>> has no member named 'operator!='
>> /.../Insight/Code/Common/itkConstShapedNeighborhoodIterator.h: In member
>> function 'bool itk::ConstShapedNeighborhoodIterator<TImage,
>> TBoundaryCondition>::ConstIterator::operator==(const
>> itk::ConstShapedNeighborhoodIterator<TImage,
>> TBoundaryCondition>::ConstIterator&) const':
>>
>> Build Log line 1281
>>
>> File: Code/Common/itkConstShapedNeighborhoodIterator.h Line: 154CVS
>>
>> /.../Insight/Code/Common/itkConstShapedNeighborhoodIterator.h:154:
>> error: 'const class __gnu_debug::_Saf
>> e_iterator<__gnu_norm::_List_const_iterator<unsigned int>,
>> __gnu_debug_def::list<unsigned int, std::allocator<unsigned int> > >'
>> has no member named 'operator=='
>>
>> /.../Insight/Code/Common/itkConstShapedNeighborhoodIterator.h: In member
>> function 'bool itk::ConstShapedNeighborhoodIterator<TImage,
>> TBoundaryCondition>::ConstIterator::operator==(const
>> itk::ConstShapedNeighborhoodIterator<TImage,
>> TBoundaryCondition>::ConstIterator&) const':
>>
>> --
>>
>>
>> ____________________________________________________________
>> Mathieu Coursolle                   mcoursolle at rogue-research.com
>> Rogue Research                      www.rogue-research.com
>> Montréal, Québec, Canada
>>
>> _______________________________________________
>> Insight-developers mailing list
>> Insight-developers at itk.org
>> http://www.itk.org/mailman/listinfo/insight-developers
>>
>
>
>-- 
>Mathieu
>Tel: +33 6 32 13 33 40
>




More information about the Insight-developers mailing list