Hi people,

I defined a simple function that is running perfectly in my machine, but a
collaborator of mine is facing problems to run this function in a Ubuntu 32
bits running in Virtualbox (he has a windows machine 64 bits, but for some
reason he can not run Ubuntu 64 bits in Virtualbox).

Below you can find the prototype of the function I have and how I call it

function main(Qi::Float64, Qf::Float64, dq::Float64, Np::Int64,
r2dq::Float64, r2fa::Float64, torem::Int64)

#code here#

end

main(-5.0,5.0,1.0,9,-1.0,-1.0,1);

And now you can find the error message he receives:

ERROR: LoadError: MethodError: `main` has no method matching
main(::Float64, ::Float64, ::Float64, ::Int32, ::Float64, ::Float64,
::Int32)
Closest candidates are:
  main(::Float64, ::Float64, ::Float64, !Matched::Int64, ::Float64,
::Float64, !Matched::Int64)
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:304
 in process_options at ./client.jl:280
 in _start at ./client.jl:378
while loading /home/lucas/.julia/v0.4/Multifractal/test/runtests.jl, in
expression starting on line 16


According to this (
http://docs.julialang.org/en/release-0.4/manual/methods/#defining-methods)
I understand this problem could be solved by replacing all my "Float64" and
"Int64" by "Number". Is that the good practice? Wouldn't it make my code
slower as the exact type is not defined?

thanks for any help! have a nice last day of Gregorian year! ;)

Charles


-- 
Um axé! :)

--
Charles Novaes de Santana, PhD
http://www.imedea.uib-csic.es/~charles

Reply via email to