Ocaml 错误:模块列表是模块ListLabels的别名,缺少该别名

Ocaml 错误:模块列表是模块ListLabels的别名,缺少该别名,ocaml,ocamlbuild,omake,Ocaml,Ocamlbuild,Omake,我的构建设置有问题。我得到了这个错误: Error: The module List is an alias for module ListLabels, which is missing 在交互式顶级列表中,标签存在,但在编译期间不存在 我在OCaml编译器中将此错误消息跟踪到这行代码: 证明原因是以下编译器标志: -strict-deps Hide .cmi whose name is not explicitly referenced 了解构建设置的足够详细信息以重现问题将非常有用。

我的构建设置有问题。我得到了这个错误:

Error: The module List is an alias for module ListLabels, which is missing
在交互式顶级
列表中,标签
存在,但在编译期间不存在

我在OCaml编译器中将此错误消息跟踪到这行代码:


证明原因是以下编译器标志:

-strict-deps  Hide .cmi whose name is not explicitly referenced

了解构建设置的足够详细信息以重现问题将非常有用。