caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Multi-threaded programs using MinGW x-compiler
@ 2010-05-24  1:39 Paul Steckler
  2010-05-24 10:03 ` Richard W.M. Jones
  2010-05-24 12:22 ` [Caml-list] " Török Edwin
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Steckler @ 2010-05-24  1:39 UTC (permalink / raw)
  To: caml-list; +Cc: rjones

Has anyone gotten an OCaml multithreaded program to build for Win32 native threads using the
MinGW ocaml cross-compiler?

At least with the Fedora distribution of that compiler, there's a libthreadsnat.a, but it's
missing some symbols.  The source for that library assumes the availability of pthreads
and Unix-style signals on the target.  There is a pthreads library for MingGW, but there
isn't a complete emulation of signals on Windows.  So I think another approach is needed.

Maybe the cross-compiler can instead generate calls to the procedures in the native threads
library that's distributed with the Windows version of OCaml.  That library would have
to be converted, somehow, from the .lib format to the .a format.

-- Paul
--
Paul Steckler
National ICT Australia
paul DOT steckler AT nicta.com.au

The information in this e-mail may be confidential and subject to legal professional privilege and/or copyright. National ICT Australia Limited accepts no liability for any damage caused by this email or its attachments.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-24 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-24  1:39 Multi-threaded programs using MinGW x-compiler Paul Steckler
2010-05-24 10:03 ` Richard W.M. Jones
2010-05-24 12:22 ` [Caml-list] " Török Edwin

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).