Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2003-10-17 (07:35)
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
> File "", 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 Archives:
Bug reports: FAQ:
Beginner's list: