Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Multi-threaded programs using MinGW x-compiler
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-05-24 (01:39)
From: Paul Steckler <Paul.Steckler@n...>
Subject: Multi-threaded programs using MinGW x-compiler
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

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.