Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Ocaml 3.07+2: Strange error message
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Ocaml 3.07+2: Strange error message
> I tried recompiling some code depending on the threads library which 
> worked just fine in 3.06. Here's what I get:
> 
> [alex@flyingtuxman plc]$ ocamlc threads.cma -c concurrency_model.ml
> File "concurrency_model.ml", line 25, characters 19-36:
> Unbound value Event.new_channel
> 
> But of course, Event.new_channel *IS* bound and it's definition is in 
> 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