You probably need to declare as const within Duktape:
`const _jl_duktape = "/home/lobi/juliarepo/duktape-0.11.0/src/duktape.so"` On Sun, Aug 24, 2014 at 10:16 AM, Andreas Lobinger <[email protected]> wrote: > Hello, > > maybe it's the weather, maybe it's a side effect, but what happens here: > > julia> Duktape._jl_duktape > "/home/lobi/juliarepo/duktape-0.11.0/src/duktape.so" > > julia> > ccall((:duk_create_heap,"/home/lobi/juliarepo/duktape-0.11.0/src/duktape.so"),Ptr{Void},()) > Ptr{Void} @0x0cfd5ee0 > > julia> ccall((:duk_create_heap,Duktape._jl_duktape),Ptr{Void},()) > ERROR: type: anonymous: in ccall: first argument not a pointer or valid > constant expression, expected DataType, got Type{(Any...,)} > in anonymous at no file > > i remember something about that the library needs to be found somehow, but > that would not explain the sucessful first call ... for me the difference > is just the string as literal or as variable. > > > > >
