You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2019. It is now read-only.
Hi- I'm fairly new to Julia but have been having an issue with compiling static julia.
my hello.jl:
module Hello
Base.@ccallable function julia_main(ARGS::Vector{String})::Cint
n = parse(Int, readline(STDIN))
i :: UInt64 = 0
while i < n
i = i + 1
println(i)
end
return 0;
end
end
which prints the numbers from 1 to n as expected when called from Julia. However, when compiling this and running it, it will hang at some large number (the number it hangs at is the same every time it is run after being compiled, but changes when recompiled).
I don't think it is an IO issue, since another program which did more work in the loop, but did not print anything was also hanging.