In OCaml, two third-party libraries expose the same module name. Link Failure

My project uses the ctypes library and markup library. When compiling, he gives the following complaint:

Error: Files /Users/Young/.opam/4.02.1/lib/markup/markup.cmxa
       and /Users/Young/.opam/4.02.1/lib/ctypes/ctypes.cmxa
       both define a module named Common

Obviously, both libraries display the same module name. How to fix it? Any help would be appreciated. Thank.

Update: Also, I do not quite understand why there will be such a conflict. As far as I understand, even if both libraries expose the same Common module, they will display as Ctypes.Common vs Markup.Common. Shouldn't there be a conflict?

+4
source share
1 answer

, , .

ctypes , ctypes ( 0.11.2) Common.

: , . , Common, Ctypes.Common vs Markup.Common. ?

. , , . , , common.ml, Common. , . , , , , , , , ctypes_. , , , ( , ).

+4

Source: https://habr.com/ru/post/1670318/


All Articles