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
[Caml-list] ocamlc -pack and ocamlopt -pack produce different cmi files!
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-08-18 (09:21)
From: Richard Jones <rich@a...>
Subject: [Caml-list] ocamlc -pack and ocamlopt -pack produce different cmi files!
I have some (inherited) code which has a build script doing this:

ocamlc -pack -g -o bin/c/simlib.cmo -I $SUB/zkit -I $SUB/model -I $SUB/cjs2 $FILESLIB $FILESMODEL $FILESCJS2

ocamlopt -pack -o bin/opt/simlib.cmx -I $SUB/zkit -I $SUB/model -I $SUB/cjs2 $FILESLIB $FILESMODEL $FILESCJS2

It turns out that the two simlib.cmi files built by these two steps
have different MD5 digests. Why is this, and is there some way to
ensure they have the same digest?


Richard Jones.
Merjis Ltd. - all your business data are belong to you.
C2LIB is a library of basic Perl/STL-like types for C. Vectors, hashes,
trees, string funcs, pool allocator:

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: