Is this a bug or a feature ?
module B
using Cairo
test() = ccall((:cairo_version_string,Cairo._jl_libcairo),Cstring,())
end
julia> B.test()
ERROR: TypeError: in test, in ccall: first argument not a pointer or valid constant expression, expected Ptr, got Tuple{Symbol,String}
Which is a bit werid since both Cairo and _jl_libcairo are const (but Cairo._jl_libcairo isn’t ?)
Anyway doing import Cairo._jl_libcairo
seems to fix the issue.