From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 85E52BC6B for ; Thu, 31 May 2007 07:29:19 +0200 (CEST) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l4V5TJ3X028000 for ; Thu, 31 May 2007 07:29:19 +0200 Received: from bdv75-4-82-227-67-200.fbx.proxad.net (bdv75-4-82-227-67-200.fbx.proxad.net [82.227.67.200]) by smtp1-g19.free.fr (Postfix) with ESMTP id 182751AB2A8; Thu, 31 May 2007 07:29:19 +0200 (CEST) Received: from rt by bdv75-4-82-227-67-200.fbx.proxad.net with local (Exim 4.67) (envelope-from ) id 1HtdDq-0003Rx-AB; Thu, 31 May 2007 07:29:18 +0200 Date: Thu, 31 May 2007 07:29:17 +0200 From: Ralf Treinen To: Kaspar Rohrer Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Building a toplevel with threads Message-ID: <20070531052917.GA4144@seneca.free.fr> References: <40168660-516C-40A1-AD7D-2963D9566B5A@student.ethz.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40168660-516C-40A1-AD7D-2963D9566B5A@student.ethz.ch> User-Agent: Mutt/1.5.13 (2006-08-11) X-Miltered: at concorde with ID 465E5D2F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ralf:01 toplevel:01 threads:01 0200,:01 toplevel:01 findlib:01 ocaml:01 threads:01 ocamlmktop:01 -thread:01 -custom:01 unbound:01 unix:01 wrote:01 caml-list:01 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.