According to the error/backtrace the code you post is not what’s causing the error. The GMT_Create_Options is passed a SubString and it is not supported on either 0.6 or master.
Note that the file libgmt.jl has a lot of issue about the ccall. Ref https://github.com/ihnorton/Clang.jl/issues/152 . The specific issue should be fixable if you replace the Ptr{Void} with Cstring though I’m not really sure if it’s compatible with other things.
According to the error/backtrace the code you post is not what’s causing the error. The GMT_Create_Options is passed a SubString and it is not supported on either 0.6 or master.
I posted those examples because I suspected that master creates a Substring where 0.6 creates a string. The string argument to the function where the error occurs is obtained after a call to this strtok implementation.
The specific issue should be fixable if you replace the Ptr{Void} with Cstring …
help?> isvalid("aaa")
isvalid(value) -> Bool
Returns true if the given value is valid for its type, which currently can be either Char or
String.
Examples
≡≡≡≡≡≡≡≡≡≡
julia> isvalid(Char(0xd800))
false
julia> isvalid(Char(0xd799))
true
This seems intentional though it should probably be fixed.