caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] compilation woes
@ 2002-04-23 16:26 John D. Barnett
  2002-04-23 16:48 ` John D. Barnett
  0 siblings, 1 reply; 2+ messages in thread
From: John D. Barnett @ 2002-04-23 16:26 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] compilation woes
  2002-04-23 16:26 [Caml-list] compilation woes John D. Barnett
@ 2002-04-23 16:48 ` John D. Barnett
  0 siblings, 0 replies; 2+ messages in thread
From: John D. Barnett @ 2002-04-23 16:48 UTC (permalink / raw)
  To: caml-list

Sorry everyone-

After finally posting my question, I figured out the compilation problem;
I wasn't deleting the .cmx file.

Now everything works fine.

-John

On Tue, 23 Apr 2002, John D. Barnett wrote:

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


-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-23 16:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-23 16:26 [Caml-list] compilation woes John D. Barnett
2002-04-23 16:48 ` John D. Barnett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).