[vtk-developers] Guidance needed fixing problems doing 64bit compile on Mac OS X
David Gobbi
dgobbi at atamai.com
Thu Oct 26 12:40:23 EDT 2006
Sean McBride wrote:
> On 2006-10-26 11:40, David Gobbi said:
>
>
>> I've built VTK on several 64-bit systems (Linux-IA64, Linux-x86_64,
>> IRIX64, sparc64) and haven't seen any problems yet, but that's probably
>> just because I've never run into a timer Id large enough.
>>
>
> That's encouraging. I suspect vtk will work well on 64 bit Leopard once
> I get it compiling, and there are only a few compilation problems it seems.
>
>
>> My vote would be to use a vtkstd::map to store correspondences between
>> ints and the internal timer type.
>>
>
> That is the other solution. But considering that on all of Carbon,
> Cocoa, X, and Win there are bad casts I wonder if changing
> vtkTimerStruct's 'int Id' to 'ptrdiff_t Id' would be better. That way
> both 'platformTimerId' and 'timerId' would be the same size and no casts
> nor maps would be needed.
>
A "long" would do the trick, I believe that the C standard requires it
to be as big as a pointer, and this would cause an absolute minimum of
backwards-compatibility issues.
- David
More information about the vtk-developers
mailing list