[Insight-developers] ptrdiff_t and gcc 4.6.0

Dirk Boye body at nabla.org
Tue Apr 26 07:55:21 EDT 2011


Dear list,

I've just upgraded to gcc 4.6.0 and following errors occured for a lot
of files:


/usr/local/include/ITK-4.0/itkConvertPixelBuffer.txx:264:5: error:
‘ptrdiff_t’ was not declared in this scope
/usr/local/include/ITK-4.0/itkConvertPixelBuffer.txx:264:5: note:
suggested alternatives:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/x86_64-unknown-linux-gnu/bits/c++config.h:156:28:
note:   ‘std::ptrdiff_t’


After changing ptrdiff_t to std::ptrdiff_t in all .h/.txx/.cxx files
compilation worked without errors.

I don't have gcc 4.4 anymore so I can't test if these changes have any
influence in 4.4.

Cheers,
Dirk


More information about the Insight-developers mailing list