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
Change of behaviour of ocaml -make-runtime with 3.11.0
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-12-18 (12:35)
From: Bertrand Jeannet <Bertrand.Jeannet@i...>
Subject: Change of behaviour of ocaml -make-runtime with 3.11.0

1. With OCaml 3.11.0, if I write
ocamlc.opt -o myrun -make_runtime unix.cma
ocamlc.opt -o essai -use_runtime myrun unix.cma
let x = Unix.time() in
Format.printf "Here1 %f@." x;;)

and then ./essai

I get the following error message:

Fatal error: cannot load shared library dllunix
Reason: /usr/local/lib/ocaml/stublibs/ undefined symbol: 

2. Until version 3.10.2, it was OK

3. I understandd that now, it is not necessary to use a custom runtime, 
as ocamlrun can load dynamically (in that case, ./essai works 

However, I would like that my Makefiles remain compatible with recent 
versions of OCaml.

Bertrand Jeannet