Browse thread
[
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: | Markus Mottl <markus@o...> |
| Subject: | [Caml-list] Re: your mail |
On Tue, 22 Jan 2002, cgillot@gruposbd.com wrote: > I don't know whether this is a ocaml problem or a pcre-ocaml > problem, but the point is that although I manage to generate a > toplevel with pcre-ocaml linked by doing : > > ocamlmktop -o ocamlunx -I +camlp4 -I +contrib unix.cma str.cma pcre.cma camlp4o.cma > > When I try to do a : > #open Pcre;; > or to use a function with its full-qualified name a "Unbound module" message. This should probably be an FAQ: toplevels do not remember include-paths of libraries linked with them. This means that you have to explicitly tell your toplevel where to find the module interfaces (.cmi-files), e.g.: ocamlunx -I +camlp4 -I +contrib Only then can you reference modules in those libraries. Maybe this should be mentioned in chapter 9.5 of the manual? Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr