I’m trying to compile a project that uses a native . so library. I’ve written an ocaml wrapper for it and added foreign_stub to dune file, but it yields undefined reference errors during linking. How to fix that? I tried adding flags -cclib -llib but that doesn’t seem to change anything.
2 posts - 2 participants