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
Compatibility 3.11.1 and 3.09.3
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-01-18 (14:59)
From: David Allsopp <dra-news@m...>
Subject: RE: [Caml-list] Compatibility 3.11.1 and 3.09.3
Michel Levy wrote:
> I have byte-code produced by ocamlc  version 3.11.1 which does not work
> with ocamlrun version 3.09.3.
> Is this situation normal ?

Afraid so.

> Must I have exactly the same version for the compiler producing the
> byte-code and the ocamlrun executing this code ?

Yes - even releases within the same minor version number are not guaranteed
to have binary compatibility. 

>     Sincerely yours.
> PS : this problem occurs to me because I compile on my machine (ocaml
> 3.11.1) and I send the byte code
> to a web server with an other version (ocaml 3.09.3) and I am not in
> charge of this server.

It is (reasonably) easy to compile a local copy of OCaml 3.09.3 and switch
to that for bytecode compilation on your server
( If you're using camlp4, then
you'll need a slightly screwy Makefile to ensure that you pre-process using
camlp4 from 3.11.1 and compile using ocamlc from 3.09.3 but that's far from

Hope that helps inasmuch as it confirms your fears!