title: Unbound modules in OCaml
body: <p>My problem is that ocamlc and ocamlopt <em>apear</em> to be refusing to find third party libraries installed through apt-get. I first started having this problem when I tried to incorporate third-party modules into my own OCaml programs, and quickly wrote it off as a personal failing in understanding OCaml compilation. Soon-- however-- I found myself running into the same problem when trying to compile other peoples projects under their own instructions.</p>
  
  <p>Here is the most straight-forward example. The others all use ocamlbuild, which obfuscates things a little bit.</p>
  
  <p>The program: <a href="http://groups.google.com/group/fa.caml/msg/5aee553df34548e2" rel="noreferrer">http://groups.google.com/group/fa.caml/msg/5aee553df34548e2</a></p>
  
  <p>The compilation:</p>
  
  <pre><code>$ocamlc -g -dtypes -pp camlp4oof -I +camlp4 dynlink.cma camlp4lib.cma -cc g++ llvm.cma llvm_bitwriter.cma minml.ml -o minml
  File "minml.ml", line 43, characters 0-9:
  Error:Unbound module Llvm
  </code></pre>
  
  <p>Even when I provide ocamlc with the obsolute paths to the llvm files, like so...</p>
  
  <pre><code>$ ocamlc -g -dtypes -pp camlp4oof -I +camlp4 dynlink.cma camlp4lib.cma -cc g++ /usr/lib/ocaml/llvm-2.7/llvm.cma /usr/lib/ocaml/llvm-2.7/llvm_bitwriter.cma minml.ml -o minml 
  </code></pre>
  
  <p>... to no avail.</p>
  
  <p>What am I doing wrong?</p>