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 MAA30770; Sat, 14 Dec 2002 12:32:17 +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 MAA30766 for ; Sat, 14 Dec 2002 12:32:16 +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 gBEBWF926728 for ; Sat, 14 Dec 2002 12:32:15 +0100 (MET) Received: from fichte.ai.univie.ac.at (markus@localhost [127.0.0.1]) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian -4) with ESMTP id gBEBWF6K008811; Sat, 14 Dec 2002 12:32:15 +0100 Received: (from markus@localhost) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian -4) id gBEBWF9c008810; Sat, 14 Dec 2002 12:32:15 +0100 Date: Sat, 14 Dec 2002 12:32:15 +0100 From: Markus Mottl To: jehenrik Cc: caml-list@inria.fr Subject: Re: [Caml-list] darwin link suckage eg: pcre Message-ID: <20021214113215.GA8576@fichte.ai.univie.ac.at> Mail-Followup-To: jehenrik , caml-list@inria.fr References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: Austrian Research Institute for Artificial Intelligence Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, 14 Dec 2002, jehenrik wrote: > >bash2.05 jehenrik@localhost ~/src/pcre-ocaml-4.28.3 % ocaml_pcre > > Objective Caml version 3.06 > > > ># open Pcre;; > >Unbound module Pcre > ># Pcre.regexp;; > >Unbound value Pcre.regexp Toplevels always require include paths, i.e. you should either start it as follows: ocaml_pcre -I +contrib Or as usual but include the path within the toplevel: ocaml_pcre # #directory "+contrib";; > ># #load "lib/pcre.cmo";; > ># Pcre;; > >Unbound constructor Pcre This wouldn't work anyway, because here Pcre is not interpreted as a module name but as a constructor. You either need to "open Pcre" or access one of the names contained within it with a fully qualified name, e.g. "Pcre.regexp". Even then the above example wouldn't work, because the compiled interface file "pcre.cmi" also needs to be visible. This can only be done in the way explained above. > Of course this isn't what I want, it's just duct tape. Now I have a fix > which I don't understand either. I change > > >ifndef OCAML_LIB_INSTALL > > OCAML_LIB_INSTALL := $(OCAMLLIBPATH) > >JH was $(OCAMLLIBPATH)/contrib > > in OcamlMakefile, reinstall, and everything works perfect: Sure, because the standard directory is always in the search path of toplevels. Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- 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