Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 521

Use dune to link with c library

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 521

Trending Articles