[Insight-developers] ptrdiff_t and gcc 4.6.0

David Doria daviddoria at gmail.com
Tue Apr 26 08:14:01 EDT 2011


On Tue, Apr 26, 2011 at 7:55 AM, Dirk Boye <body at nabla.org> wrote:
> 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

Dirk,

There were 3 files affected by this problem. Brad King fixed the one in MetaIO.

The fix for the other two (including the one you mention) is here:

http://review.source.kitware.com/#change,1448

I haven't merged it yet because I thought there was a more complex
process since one of them is in ThirdParty?

David


More information about the Insight-developers mailing list