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 (http://caml.inria.fr/pub/distrib/ocaml-3.09/). 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 impossible... Hope that helps inasmuch as it confirms your fears! David _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs