Version française
Home     About     Download     Resources     Contact us    
Browse thread
Building a toplevel with threads
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Kaspar Rohrer <krohrer@s...>
Subject: Building a toplevel with threads
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?