我有一个结构如下的项目:
root/
|—— dune-project
|—— lib/
| |—— dune
| |—— Readertsp.ml
| |-- ...
|
|—— bin/
| |—— dune
| |—— bin.ml
bin.ml
:
let city_config = "ch130" in
let path = Readertsp.open_path city_config in ();;
dune
:
(executable
(name MCTS_main)
(libraries graphics mcts)
)
Readertsp.ml
:https ://pastebin.com/U0h69uRy
dune
:
(library
(name mcts)
(modules Readertsp)
(libraries graphics))
当我尝试沙丘构建时,我收到此错误:
File "tests/MCTS_main.ml", line 3, characters 0-19:
3 | Readertsp.open_path city_config;;
^^^^^^^^^^^^^^^^^^^
Error: Unbound module Readertsp
你知道如何解决这个问题吗?