English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2007-05-31 (05:29)
From: Ralf Treinen <treinen@f...>
Subject: Re: [Caml-list] Building a toplevel with threads
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".