<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/12/2faab84465df3069538d9c2cb827287f"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2002-12-14T11:32:17"
  subject="Re: [Caml-list] darwin link suckage eg: pcre"
  prev="2002/12/01a1eed0f61a6659ca18888d61bdb359"
  next="2002/12/9fa6c225f20604b6a6e0a6ac9afcb2c0"
  prev-in-thread="2002/12/01a1eed0f61a6659ca18888d61bdb359"
  prev-thread="2002/12/91fe95b70649b64d0cb16758a0b17044"
  next-thread="2002/12/9fa6c225f20604b6a6e0a6ac9afcb2c0"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] darwin link suckage eg: pcre">
<msg 
  url="2002/12/01a1eed0f61a6659ca18888d61bdb359"
  from="jehenrik &lt;jehenrik@y...&gt;"
  author="jehenrik"
  date="2002-12-14T07:00:39"
  subject="[Caml-list] darwin link suckage eg: pcre">
<msg 
  url="2002/12/2faab84465df3069538d9c2cb827287f"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2002-12-14T11:32:17"
  subject="Re: [Caml-list] darwin link suckage eg: pcre">
</msg>
</msg>
</thread>

<contents>
On Sat, 14 Dec 2002, jehenrik wrote:
&gt; &gt;bash2.05 jehenrik@localhost ~/src/pcre-ocaml-4.28.3 % ocaml_pcre
&gt; &gt;        Objective Caml version 3.06
&gt; &gt;
&gt; &gt;# open Pcre;;
&gt; &gt;Unbound module Pcre
&gt; &gt;# Pcre.regexp;;
&gt; &gt;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";;

&gt; &gt;# #load "lib/pcre.cmo";;
&gt; &gt;# Pcre;;
&gt; &gt;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.

&gt; Of course this isn't what I want, it's just duct tape.  Now I have a fix 
&gt; which I don't understand either.  I change
&gt; 
&gt; &gt;ifndef OCAML_LIB_INSTALL
&gt; &gt;  OCAML_LIB_INSTALL := $(OCAMLLIBPATH)
&gt; &gt;JH was $(OCAMLLIBPATH)/contrib
&gt; 
&gt; 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

</contents>

</message>

