Browse thread
[Caml-list] Problem using pcre on Debian
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Alain Frisch <frisch@c...> |
| Subject: | Re: [Caml-list] Problem using pcre on Debian |
On Fri, 22 Feb 2002, Johann Spies wrote: > There is no Debian package for pcre so I compiled one in > /usr/local/src and installed it to /usr/local/lib/ocaml/pcre. > > The compilation went without a problem after I removed the comment to > use STATIC=1 in the Makefile. I also copied META to the installation > directory. If you want to use pcre as a dll, you have to build it as a dll. So you have to investigate why the Makefile failed to build the dll ... What is your platform / C compiler ? OCamlMakefile uses by default cc as the C compiler, and passes -fPIC to it. On Solaris, cc does not recognizes this option, and I had to tell OCamlMakefile to use gcc instead. Maybe you can try to do the same ... Usually, I use ocamlc as a front-end to the C compiler; it seems natural to compile C files (that have to be interfaced with OCaml) with the compiler ocamlrun was built from. Is there any reason not to do it ? -- Alain ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners