From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id EAA14682; Sun, 14 Apr 2002 04:00:12 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id EAA18692 for ; Sun, 14 Apr 2002 04:00:11 +0200 (MET DST) Received: from favie.faith.gr.jp (favie.faith.gr.jp [61.127.175.250]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3E209L22560 for ; Sun, 14 Apr 2002 04:00:09 +0200 (MET DST) Received: from localhost (dhcp7.faith.gr.jp [192.168.1.17]) by favie.faith.gr.jp (8.9.3/8.9.3) with ESMTP id LAA23665; Sun, 14 Apr 2002 11:00:04 +0900 To: sgelkins@bellsouth.net Cc: caml-list@inria.fr Subject: Re: [Caml-list] toplevel with threads In-Reply-To: <87ads7ubr2.fsf@d8tv0m01.rdu.bellsouth.net> References: <87ads7ubr2.fsf@d8tv0m01.rdu.bellsouth.net> X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020414105943P.garrigue@kurims.kyoto-u.ac.jp> Date: Sun, 14 Apr 2002 10:59:43 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: Steve Elkins > Will someone please explain what I'm doing wrong, or tell me my build > is broken, or enlighten me somehow. I'm having trouble using threads > in toplevels, but not when I compile to bytecode. > > sge:346$ ocamlmktop -custom -o strocaml str.cma Which architecture (OS) are you working with? Since ocaml 3.04, you don't need to build custom toplevels on architectures where dynamic loading is supported. $ ocaml Objective Caml version 3.04 # #load"str.cma";; # Str.regexp;; - : string -> Str.regexp = This also works for threads, but not always: $ ocaml -I +threads Objective Caml version 3.04 # #load"unix.cma";; # #load"threads.cma";; > sge:350$ ./throcaml > Objective Caml version 3.04 > > # Thread.create;; > Unbound value Thread.create You need to add the +threads directory to your load path: $ ./throcaml -I +threads Cheers, Jacques Garrigue ------------------- 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