From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA30765; Tue, 23 Apr 2002 18:26:55 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA30710 for ; Tue, 23 Apr 2002 18:26:54 +0200 (MET DST) Received: from psrg.lcs.mit.edu (psrg.lcs.mit.edu [18.30.0.122]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3NGQrv05968 for ; Tue, 23 Apr 2002 18:26:53 +0200 (MET DST) Received: from localhost (barnett@localhost) by psrg.lcs.mit.edu (8.9.1/8.9.3) with ESMTP id MAA31937 for ; Tue, 23 Apr 2002 12:26:48 -0400 Date: Tue, 23 Apr 2002 12:26:48 -0400 (EDT) From: "John D. Barnett" To: caml-list@inria.fr Subject: [Caml-list] compilation woes Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi- 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, John ------------------- 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