Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Using threads in compiled code
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Remi VANICAT <vanicat@l...>
Subject: Re: [Caml-list] Using threads in compiled code
Noel Welsh <noelwelsh@yahoo.com> 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