On Sun, Aug 30, 2015 at 2:01 PM, Marcio Sales <[email protected]>
wrote:
> Hi, I'm using Julia 0.3.10 and trying to understand C bindings. I'm trying
> to use a OGR C function that changes the value of one of the parameters:
>
> OGRErr OSRExportToWkt ( OGRSpatialReferenceH *hSRS*,
>
> char ** *ppszReturn*
> )
> *ppszReturn *receives the results from this function.
>
> What do I have to pass to
> *ppszReturn *? I cant make a Ref{} object as it says Ref is not defined.
>
Ref is 0.4
single element array should work for 0.3 (e.g. Array{Ptr{Cchar}}(1))
P.S. Be sure to allocate enough room for the return value. You can get
really wierd bug and spectacular backtraces if the function returns more
elements than you expect.
>
> Thanks
>
>