Version française
Home     About     Download     Resources     Contact us    
Browse thread
Matching Unix_error
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michael Lahr <m.lahr@r...>
Subject: Re: [Caml-list] Matching Unix_error
Olivier Andrieu <andrieu@ijm.jussieu.fr>:
> I had this problem once, it was due to a library that was incorrectly
> packaged. The library was built like this :
> 
>   ocamlc -a -o foo.cma unix.cma foo.cmo ...
> 
> i.e. the library itself included unix.cma. When I built my program
> like this :
> 
>   ocamlc -o my_prog unix.cma foo.cma my_prog.ml
> 
> it had this behavior (the exceptions escaping the try .. with).
Thanks, this was indeed the cause of the problem.

Michael
--