Skip to content
This repository was archived by the owner on Mar 4, 2019. It is now read-only.
This repository was archived by the owner on Mar 4, 2019. It is now read-only.

Compiled hello.jl hangs #46

Description

@jacob-ruth

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.

This was compiled with Julia version 0.6.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions