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 KAA15046; Thu, 18 Apr 2002 10:44:17 +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 KAA15042 for ; Thu, 18 Apr 2002 10:44:16 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from mel-rto6.wanadoo.fr (smtp-out-6.wanadoo.fr [193.252.19.25]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3I8iFb16237 for ; Thu, 18 Apr 2002 10:44:15 +0200 (MET DST) Received: from mel-rta10.wanadoo.fr (193.252.19.193) by mel-rto6.wanadoo.fr; 18 Apr 2002 10:44:15 +0200 Received: from debian (80.8.82.94) by mel-rta10.wanadoo.fr; 18 Apr 2002 10:44:07 +0200 Received: from moi by debian with local (Exim 3.35 #1 (Debian)) id 16y7WV-0002VL-00 for ; Thu, 18 Apr 2002 10:44:11 +0200 To: caml-list@inria.fr Subject: Re: [Caml-list] Using threads in compiled code References: <20020418074543.95391.qmail@web11204.mail.yahoo.com> From: Remi VANICAT Date: 18 Apr 2002 10:44:11 +0200 In-Reply-To: <20020418074543.95391.qmail@web11204.mail.yahoo.com> Message-ID: <87g01tjt0k.dlv@wanadoo.fr> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Noel Welsh writes: > Hi all, > [...] > > My second question: how do I get threads to work? I'm > currently developing on Linux and there is no > threads.cmxa in my /usr/lib/ocaml (3.04 via Debian). > The O'Caml book suggests I need to download and > compile my own ocamlopt including pthreads support. > Is this correct? What do I do for Windows? I believe that the ocaml package on debian is already compiled with the pthread (and there is a threads.cmxa in my /usr/lib/ocaml/threads). one have to compile program with the -threads option and the the threads.cmxa library, and it should work. -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat ------------------- 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