From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA04300; Mon, 21 Jan 2002 23:43:50 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA03924 for ; Mon, 21 Jan 2002 23:43:49 +0100 (MET) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g0LMhmv16631 for ; Mon, 21 Jan 2002 23:43:48 +0100 (MET) Received: (from markus@localhost) by fichte.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id XAA17657; Mon, 21 Jan 2002 23:43:36 +0100 Date: Mon, 21 Jan 2002 23:43:36 +0100 From: Markus Mottl To: cgillot@gruposbd.com Cc: caml-list@inria.fr Subject: [Caml-list] Re: your mail Message-ID: <20020121224336.GA17642@fichte.ai.univie.ac.at> Mail-Followup-To: cgillot@gruposbd.com, caml-list@inria.fr References: <1011655678.3c4ca3fe74235@webmail.sbdconsultors.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1011655678.3c4ca3fe74235@webmail.sbdconsultors.com> User-Agent: Mutt/1.3.26i Organization: Austrian Research Institute for Artificial Intelligence Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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