I am new to Julia and trying to compile a function. My code is something like this and I get an error saying "@ccallable: argument types must be concrete" when I run the code. I also found this is because of the initial value I set to the function. Could anyone help me to solve this problem?
# this doesn't work
Base.@ccallable function test_function(a::Vector{Float64}, b::Float64, c=0.0::Float64)::Vector{Int64}
c = b + c
return a
end
# this works
Base.@ccallable function test_function(a::Vector{Float64}, b::Float64, c::Float64)::Vector{Int64}
c = b + c
return a
end