caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Remi VANICAT <vanicat@labri.u-bordeaux.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Using threads in compiled code
Date: 18 Apr 2002 10:44:11 +0200	[thread overview]
Message-ID: <87g01tjt0k.dlv@wanadoo.fr> (raw)
In-Reply-To: <20020418074543.95391.qmail@web11204.mail.yahoo.com>

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


  reply	other threads:[~2002-04-18  8:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-18  7:45 Noel Welsh
2002-04-18  8:44 ` Remi VANICAT [this message]
2002-04-18 14:44 ` Markus Mottl
2002-04-18 17:06   ` [Caml-list] Proselytizing Charles Martin
2002-04-18 20:10     ` David Chase
2002-04-19  2:25       ` Brian Rogoff
2002-04-19  7:58       ` Xavier Leroy
2002-04-19 14:32         ` David Chase
2002-04-19 15:21         ` Sven
2002-04-22  8:38         ` [Caml-list] CamlTk/Windows Christophe Macabiau
2002-04-18 19:10 ` [Caml-list] Using threads in compiled code james woodyatt
2002-04-18 21:05 ` Oliver Bandel
2002-04-19  7:42 ` Xavier Leroy
2002-04-19 16:09   ` John Max Skaller
2002-04-23 13:16   ` Noel Welsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87g01tjt0k.dlv@wanadoo.fr \
    --to=vanicat@labri.u-bordeaux.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).