On Saturday, February 14, 2015 at 5:19:45 PM UTC-8, Dominique Orban wrote:
>
>
> $ cat foo.jl
> run(`gcc foo.c -O3 -dynamiclib -o foo`) #-> compile it
> arg1, arg2, arg3, arg4 = 1, 2, 3, 4;
> val = ccall((:foo, "foo"), Cdouble,(Cdouble, Cdouble, Cdouble, Cdouble),
> arg1,arg2,arg3,arg4)
> println(val);
> $ julia foo.jl
> 10.0
>
>>
>>
Maybe I'm missing something, but isn't that result what you would expect by 
calling foo with (1,2,3,4)? The sum is 10.
 

Reply via email to