[Proj] Building for and calling from g95-MinGW
Gerald I. Evenden
geraldi.evenden at gmail.com
Tue Feb 17 16:15:48 PST 2009
On Tuesday 17 February 2009 5:20:18 pm Frank Warmerdam wrote:
> Arjan van Dijk wrote:
...
> Gerald I. Evenden wrote:
> > In simple cases FORTRAN and C[++] are not too difficult to link but
> > there is one issue I can't find a solution in Google searching:
> >
> > How do you handle C structures in FORTRAN? Do not include "common."
>
> The XY/UV structures passed to pj_fwd() and pj_inv() can just be
> passed as a REAL*8 array of size two since the structure is effectively
> just an array of two doubles.
Can't remember, but there may be a "double complex"
> The PJ structure pointer could likely just be passed around as a
> 32bit integer since it is effectively opaque to application code.
Yes, as proj allocates the memory.
But I was thinking of the broader problem. ;-)
> Best regards,
--
The whole religious complexion of the modern world is due
to the absence from Jerusalem of a lunatic asylum.
-- Havelock Ellis (1859-1939) British psychologist
More information about the Proj
mailing list