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
[Caml-list] newby using Thread on windows (different than linux)...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oliver George (Boyer) <Oliver.George@n...>
Subject: [Caml-list] newby using Thread on windows (different than linux)...

This is my first ocaml script but i don't think i've done anything silly...

(* My first ocaml program!  identifies a thread problem.
 * build with: 
 *   ocamlc -thread unix.cma threads.cma -o threadtest.exe
Printf.printf "one\n";
Thread.delay 1.0;
Printf.printf "two\n";
Thread.delay 1.0;
Printf.printf "three\n";

This script works on my debian/testing server but will bomb out on windows
nt running ocaml 3.04.  It bombs out at the first Thread.delay statement,
quietly and without error...

On windows:
C:\data\cp>ocamlc -thread unix.cma threads.cma -o cp.exe



On Linux:
opgeorge@bywdeb002:~/tmp$ ocamlc -thread unix.cma threads.cma
-o test
opgeorge@bywdeb002:~/tmp$ ./test

Can anyone tell me what i'm doing wrong... 

thanks, Oliver.
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: