Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
camlp4 -I and shared libs
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jake Donham <jake.donham@s...>
Subject: Re: [Caml-list] camlp4 -I and shared libs
> It seems you forgot either -c or -linkpkg.
> The following should work.
> ocamlfind ocamlc -c -syntax camlp4o -package micmatch_pcre
> ocamlfind ocamlc -o toto -syntax camlp4o -package micmatch_pcre -linkpkg

Thanks for the reply. This does not seem to be the problem however. In
my last message I was recreating from memory--here is my actual
command line and the response:

ocamlfind ocamlc -g -syntax camlp4o -ppopt pa_micmatch_pcre.cmo
-package extlib,calendar,camlpdf,micmatch_pcre -I .. -c
Error while loading "/usr/local/lib/ocaml/site-lib/pcre/pcre.cma":
error loading shared library: cannot open shared
object file: No such file or directory.
Preprocessor error.

I spent some time debugging it, and I see no way that the dynamic
loading code could find without the appropriate path
being added. Thanks,