<?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="2003/10/16ed88f3f5084d604bafbd6aa95a7401"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-10-17T07:35:22"
  subject="Re: [Caml-list] Ocaml 3.07+2: Strange error message"
  prev="2003/10/71219d18280cf90894b34e1a9fcc1689"
  next="2003/10/0eef11bc0ed3dcaefa1de6d2feea29a3"
  prev-in-thread="2003/10/71219d18280cf90894b34e1a9fcc1689"
  prev-thread="2003/10/938f70fcc22cb66da66abce64e1ebd62"
  next-thread="2003/10/ef0d2fcb8d3e24e64d0311d6f2b80da6"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Ocaml 3.07+2: Strange error message">
<msg 
  url="2003/10/71219d18280cf90894b34e1a9fcc1689"
  from="Alex Baretta &lt;alex@b...&gt;"
  author="Alex Baretta"
  date="2003-10-17T07:23:32"
  subject="[Caml-list] Ocaml 3.07+2: Strange error message">
<msg 
  url="2003/10/16ed88f3f5084d604bafbd6aa95a7401"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-10-17T07:35:22"
  subject="Re: [Caml-list] Ocaml 3.07+2: Strange error message">
</msg>
</msg>
</thread>

<contents>
&gt; I tried recompiling some code depending on the threads library which 
&gt; worked just fine in 3.06. Here's what I get:
&gt; 
&gt; [alex@flyingtuxman plc]$ ocamlc threads.cma -c concurrency_model.ml
&gt; File "concurrency_model.ml", line 25, characters 19-36:
&gt; Unbound value Event.new_channel
&gt; 
&gt; But of course, Event.new_channel *IS* bound and it's definition is in 
&gt; the threads library. What's going on here?

The real error is that ocamlc doesn't find event.cmi.  To get access
to the interfaces for the thread library, you need to supply the
-thread or -vmthread flags to ocamlc.  
AFAIK, the same error should occur with 3.06, unless you moved or
symlinked some files in the standard installation.

- Xavier Leroy

-------------------
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>

