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
Could you please update the book with tips for linking in C libraries?
E.g. I'm trying to wrap an existing OCaml library to make it callable form Rust, and I'm getting this error from Dune:
ld: cannot find -lrt: No such file or directory
ld: cannot find -lgmp: No such file or directory
I've tried a few attempts at getting Dune to find these libraries, but I'm not very familiar with how Dune works.
Since I'm guessing 1) you've already solved this problem, and 2) it's likely to be a common issue, could you please add a note to the book explaining the magic Dune stanzas to use?
Thanks!
The text was updated successfully, but these errors were encountered:
I haven't run into this much as I use ocaml-rs for calling Rust from OCaml - I don't have a good solution right now but see zshipko/rust-ocaml-starter#2 (comment) for a workaround.
Could you please update the book with tips for linking in C libraries?
E.g. I'm trying to wrap an existing OCaml library to make it callable form Rust, and I'm getting this error from Dune:
I've tried a few attempts at getting Dune to find these libraries, but I'm not very familiar with how Dune works.
Since I'm guessing 1) you've already solved this problem, and 2) it's likely to be a common issue, could you please add a note to the book explaining the magic Dune stanzas to use?
Thanks!
The text was updated successfully, but these errors were encountered: