Skip to content

Problem with dynamic linking crate 'rand' #4

@mverleg

Description

@mverleg

When I run this:

runner --add rand
echo "use rand;" > mwe.rs
runner mwe.rs

I get this error:

error: extern location for rand does not exist: /home/mark/.cargo/.runner/unstable/dy-cache/librand.so
error[E0463]: can't find crate for `rand`
  --> /home/user/.cargo/.runner/unstable/bin/mwe.rs:20:5
   |
20 | use rand;
   |     ^^^^ can't find crate

I think the first line means there's something going wrong with linking. I tried with -s:

runner -s mwe.rs

and indeed that works fine. I don't know how to solve it though.

P.s.: I like the tool, cool idea!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions