Yes, that's because your $MICMATCHDIR is undefined.
You should follow the recommended approach, using ocamlfind:
ocamlfind ocamlopt -c -syntax camlp4o \
-package mikmatch_pcre \
hello.ml
ocamlfind ocamlopt -o hello -syntax camlp4o \
-package mikmatch_pcre \
-linkpkg hello.cmx
> Yes, i have installed the Pcre-ocaml library. Maybe in the wrong
> version ?
>
>
> By the way in the webpage there's an error: mikmatch_pcre.cma in the
> compilation line is with the "c" instead of the "k".
That's not an error, it's because two different versions exist:
- the original one (c), which now works only with camlp5
- the newer one (k), which only works with the "new" camlp4, i.e. the
one that comes with the ocaml distribution (>= 3.10).
Martin