Under my project root I have two folders, one for library code and one for the final binary built from main.ml. Unfortunately I’m missing something since dune can’t seem to find the library code
File "bin/dune", line 3, characters 12-15: 3 | (libraries lib)) ^^^ Error: Library "lib" not found. Hint: try: dune external-lib-deps --missing @@default
Here’s the folder structure:
. |-- bin | |-- dune | |-- dune-project | `-- main.ml |-- dune-project `-- lib |-- dune `-- math.ml
(executable (name main) (libraries lib))
(library (name lib))
From the dune documentation on library dependencies it seems like dune should automatically find libraries defined within the current scope / workspace. What am I doing wrong?