Hi,

David MENTRE wrote:

> You should have the file "threads.cmxa" in the thread/ directory in
> the standard library (in my case on Cygwin
> /usr/lib/ocaml/thread/threads.cmxa).

Got it:

[EMAIL PROTECTED] tmp]$ ocamlopt -v
The Objective Caml native-code compiler, version 3.08.3
Standard library directory: /usr/lib/ocaml
[EMAIL PROTECTED] tmp]$ ls /usr/lib/ocaml/threads/
condition.cmi  event.cmi  mutex.cmi  thread.cmi  threads.a
threads.cmxa    threadUnix.cmx
condition.cmx  event.cmx  mutex.cmx  thread.cmx  threads.cma  threadUnix.cmi

> $ cat > toto.ml
> let f a = a + 1
> 
> $ ocamlopt -thread threads.cmxa toto.ml

Works nicely:

[EMAIL PROTECTED] tmp]$ cat toto.ml
let f a = a + 1
[EMAIL PROTECTED] tmp]$ ocamlopt -thread threads.cmxa toto.ml
[EMAIL PROTECTED] tmp]$

However:

[EMAIL PROTECTED] tmp]$ ocamlfind ocamlopt -thread toto.ml
ocamlfind: ocamlopt does not support multi-threaded programs for your
configuration

Strange. I'll recompile findlib again, to make sure I really compiled it
against the new compiler.

Sincerly,

Thomas
-- 
Thomas Petazzoni
[EMAIL PROTECTED]


_______________________________________________
Demexp-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/demexp-dev

Répondre à