Skip to content

Commit

Permalink
A fix to the previous problem: it is enough to add a foo_bar.mllib
Browse files Browse the repository at this point in the history
file, containing just the (packed) module Foo_bar. Then, compiling
foo_bar.cma with the command:

ocamlbuild -classic-display -Is src,src/bar src/bar/foo_bar.cma

ends with a correct library creation:

ocamlfind ocamlc -pack src/bar/a.cmo -o src/bar/foo_bar.cmo
ocamlfind ocamlc -a src/bar/foo_bar.cmo -o src/bar/foo_bar.cma

where module M does not appear. A general fix is then to create both
an mllib and an mlpack file when for packed libraries.
  • Loading branch information
pveber committed Dec 15, 2012
1 parent 090acd5 commit f20b268
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/issue-1239/src/bar/foo_bar.mllib
@@ -0,0 +1 @@
Foo_bar

0 comments on commit f20b268

Please sign in to comment.