Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "John D. Barnett" <barnett@psrg.lcs.mit.edu>
To: caml-list@inria.fr
Subject: [Caml-list] compilation woes
Date: Tue, 23 Apr 2002 12:26:48 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.10.10204231159290.31766-100000@psrg.lcs.mit.edu> (raw)

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


             reply	other threads:[~2002-04-23 16:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-23 16:26 John D. Barnett [this message]
2002-04-23 16:48 ` John D. Barnett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.10.10204231159290.31766-100000@psrg.lcs.mit.edu \
    --to=barnett@psrg.lcs.mit.edu \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox