Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: Threads and ocaml-2.02
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Markus Mottl <mottl@m...>
Subject: Re: Threads and ocaml-2.02
> I have some problem with threads in ocaml-2.02 (bytecode threads)
> 
> ocamlmktop -thread -custom threads.cma unix.cma -cclib -lthreads -cclib
> -lunix
> 
> Error while linking /opt/ocaml/lib/ocaml/threads/stdlib.cma(Printf):
> Reference to undefined global `Buffer'
> 
> The expression above do work in ocaml-2.01. 

This is almost certainly a bug in the distribution you have: the
"threads"-version of the standard library has been linked without the new
"buffer"-module.

I have already sent in a bug report for this and Xavier Leroy was so
kind to place an updated version on the distributions site.  Just load
down the new distribution (at least the RPM should be ok)...

Best regards,
Markus Mottl

-- 
Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl