Version française
Home     About     Download     Resources     Contact us    
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 toto.ml
> ocamlfind ocamlc -o toto -syntax camlp4o -package micmatch_pcre -linkpkg toto.ml

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 scrape.ml
Error while loading "/usr/local/lib/ocaml/site-lib/pcre/pcre.cma":
error loading shared library: dllpcre_stubs.so: 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 dllpcre_stubs.so without the appropriate path
being added. Thanks,

Jake