English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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 a.ml, 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 b.ml!!

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 caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners