Note that in your code `pointer([LL])` will occasionally cause a segfault. The argument to `pointer` must be simply a variable name, not an expression. (i'm working a PR to eliminate the need for `pointer`, since I believe that it is hard to use correctly: https://github.com/JuliaLang/julia/blob/jn/ccall3/doc/manual/calling-c-and-fortran-code.rst#passing-pointers-for-modifying-inputs )
On Sat Feb 21 2015 at 1:29:58 PM J Luis <[email protected]> wrote: > Thanks. That was exactly it. > > sábado, 21 de Fevereiro de 2015 às 18:20:05 UTC, Steven G. Johnson > escreveu: > >> Make sure GMT.GMT_RESOURCE is declared as an immutable type if you want >> Array{GMT.GMT_RESOURCE} to correspond to the memory layout of an array of C >> structs. >> >
