* Building a toplevel with threads
@ 2007-05-31 5:19 Kaspar Rohrer
2007-05-31 5:29 ` [Caml-list] " Ralf Treinen
0 siblings, 1 reply; 2+ messages in thread
From: Kaspar Rohrer @ 2007-05-31 5:19 UTC (permalink / raw)
To: caml-list
I'm currently trying to build a toplevel with thread support, but
somehow the final executable is missing the Thread module. Findlib is
out of question because dynamic loading is not supported on my
platform (Intel OS X, OCaml 3.09.3).
So what would be the correct way to build a custom toplevel with
support for threads? This is what I have so far:
ocamlmktop -thread -custom unix.cma threads.cma -o thtop
which gives:
# Thread.create;;
Unbound value Thread.create
I'm out of ideas.
Regards
- Kaspar Rohrer
PS: It seems to me like documentation on threading in ocaml is very
sparse and somewhat outdated. Or maybe I just missed it?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Building a toplevel with threads
2007-05-31 5:19 Building a toplevel with threads Kaspar Rohrer
@ 2007-05-31 5:29 ` Ralf Treinen
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Treinen @ 2007-05-31 5:29 UTC (permalink / raw)
To: Kaspar Rohrer; +Cc: caml-list
On Thu, May 31, 2007 at 07:19:20AM +0200, Kaspar Rohrer wrote:
> I'm currently trying to build a toplevel with thread support, but
> somehow the final executable is missing the Thread module. Findlib is
> out of question because dynamic loading is not supported on my
> platform (Intel OS X, OCaml 3.09.3).
> So what would be the correct way to build a custom toplevel with
> support for threads? This is what I have so far:
>
> ocamlmktop -thread -custom unix.cma threads.cma -o thtop
>
> which gives:
>
> # Thread.create;;
> Unbound value Thread.create
I have seen this before. Try calling your toplevel as "thtop -I +threads".
-Ralf.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-31 5:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-31 5:19 Building a toplevel with threads Kaspar Rohrer
2007-05-31 5:29 ` [Caml-list] " Ralf Treinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox