Andrew Haley writes: > Tim Prince writes: > > Andrew Haley wrote: > > > > > Well, if this data structure is shared with FORTRAN you'll have to do > > > something similar on the FORTRAN side. It'll be a different type: > > > INTEGER*8 or somesuch. I'm not a FORTRAN programmer. > > > > > > But yes, long will work on all gcc targets I'm aware of. > > > > All maintained Fortran compilers, including gfortran, support c_ptr > > data type. You can't very well port intentionally non-portable > > stuff to a different architecture unless you correct such > > anachronisms. One question: is c_ptr compatible with C pointers, or is it an integer type compatible with intptr_t ? Andrew.