* [Caml-list] Ocaml 3.07+2: Strange error message
@ 2003-10-17 7:23 Alex Baretta
2003-10-17 7:35 ` Xavier Leroy
0 siblings, 1 reply; 2+ messages in thread
From: Alex Baretta @ 2003-10-17 7:23 UTC (permalink / raw)
To: ocaml
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?
Alex
-------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Ocaml 3.07+2: Strange error message
2003-10-17 7:23 [Caml-list] Ocaml 3.07+2: Strange error message Alex Baretta
@ 2003-10-17 7:35 ` Xavier Leroy
0 siblings, 0 replies; 2+ messages in thread
From: Xavier Leroy @ 2003-10-17 7:35 UTC (permalink / raw)
To: Alex Baretta; +Cc: ocaml
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-17 7:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-17 7:23 [Caml-list] Ocaml 3.07+2: Strange error message Alex Baretta
2003-10-17 7:35 ` Xavier Leroy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox