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

Custom toplevels and dune

$
0
0

I want to build a bytecode executable (as it embed an OCaml toplevel) that uses some C libraries, such as linenoise. However, the description of a normal executable with (modes native) and (flags :standard -linkall -custom) with the appropriate library dependencies only gives me linker errors such as:

/usr/bin/ld: cannot find -llinenoise_stubs

which are not a problem when building native binaries, with the appropriate LD_LIBRARY_PATH. But for the custom executable I have no idea how to tell dune what directories to include…

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 521

Trending Articles