I've just created a new set of wrapper files against gmt 5.1 using the latest version of Clang.jl, and gave you commit access to the repo.
https://github.com/ihnorton/GMT.jl (I don't have a build of it though so I haven't tested anything) On Sat, Mar 15, 2014 at 2:53 PM, Isaiah Norton <isaiah.nor...@gmail.com>wrote: > The current version of Clang.jl will create an immutable like: > > immutable Array_2_Cdouble > d1::Cdouble > d2::Cdouble > end > > which can be indexed numerically as expected. > > > On Sat, Mar 15, 2014 at 1:54 PM, J Luis <jmfl...@gmail.com> wrote: > >> Hi, >> >> I am trying to access to members of a structure 'imported' via ccall and >> where Clang.jl declared the types as being >> >> bitstype int(WORD_SIZE/8)*sizeof(Cdouble)*2 Array_2_Cdouble >> bitstype int(WORD_SIZE/8)*sizeof(Uint8)*80 Array_80_Uint8 >> >> But I now am incapable of accessing their contents. Below is an example >> of what I tried (also tried several other variations of this) >> >> >> julia> typeof(hdr.title) >> Array_80_Uint8 >> >> julia> typeof(hdr.inc) >> Array_2_Cdouble >> >> julia> hdr.inc[1] >> ERROR: no method getindex(Array_2_Cdouble, Int64) >> >> How can access those guys? >> >> Thanks >> > >