Circular Dependency Definition Woes
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <[email protected]> |
I have a list of ml files, and some interfaces in mli; I'm compiling a cma and cmxa successfully, but there's a target that consumes the library that keeps complaining: No implementations provided for the following modules:module, module module... But there are implementations provided for every single one of those modules. There are circular dependencies between them, hence the mli files, but I don't know how to get the compiler to accept that there are definitions. So the library compiles fine, but the actual target does not. I am, however, seeing this:make[2]: Circular source1.cmx <- source2.cmx dependency dropped. a lot. And it's clear that looking at the error output that for every one of those lines I see, that there will be a corresponding complaint. Is there any way to get past those circular dependencies?