Thank you, i did and it worked. 

I tried to find thisin the documentation and actually more than once it's 
stated that the tuple needs to be const. But it wasn't obvious for me that 
there are different flavours of the string. The error message could be 
improved (imho).

On Sunday, August 24, 2014 4:18:53 PM UTC+2, Isaiah wrote:
>
> 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 <lobi...@gmail.com 
> <javascript:>> 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.
>>
>>
>>
>>
>>
>

Reply via email to