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] compilation woes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-04-23 (16:26)
From: John D. Barnett <barnett@p...>
Subject: [Caml-list] compilation woes

I'm new to ocaml, and am having problems using the native code compiler,
ocamlopt (ocaml-3.00-10 on intel RHLinux 7.1).

I have a program split across multiple modules, each of which is compiled
to a .cmxa file.  The final compile/link step gives an error:

Files a.cmxa
and b.cmxa
make inconsistent assumptions over implementation Foo

If I remove any references to module Foo from, and recompile, then I
still get errors for b.o/b.a in linking, with undefined references to a
function in Foo which isn't called from!!

BTW, everything works using the bytecode compiler, ocamlc.

Does anyone have an idea of what could be happening or what I might be
doing wrong?

Thanks in advance,


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