From: shail@au-bon-pain.lcs.mit.edu (Shail Aditya)
To: caml-list@margaux
Subject: Bug in Linker?
Date: Fri, 27 Nov 92 22:21:18 EST [thread overview]
Message-ID: <9211280321.AA27723@au-bon-pain.lcs.mit.edu> (raw)
Hello,
I have noticed a possible bug in the 0.5 release of the
camllight compiler (camlc) and linker that surfaces only sometimes,
but often enough to make me write this message.
Here is what happens:
I have a file foo_aux.ml in which I define a variable, say "bar". I
have another file foo.ml in which I open "foo_aux" and then use "bar"
inside it.
Now, I compile foo_aux.ml and foo.ml one by one in that sequence
(using the make facility). While compiling foo.ml, the compiler gives
me errors saying that "foo_aux__bar" is referenced before being
defined.
Surprisingly, the file foo.zo is still present. I link it with the
rest of the program and it works fine!! If I compile foo.ml again the
error message is produced again.
All I want to know is whether this is a known bug and I should not
worry. It does not bother me too much since the final program is able
to link properly and works fine even after the compiler tells me there
is something wrong.
I can give more details and actual examples if necessary.
Shail Aditya.
next reply other threads:[~1992-11-30 8:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-11-28 3:21 Shail Aditya [this message]
1992-11-30 10:37 Damien Doligez
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=9211280321.AA27723@au-bon-pain.lcs.mit.edu \
--to=shail@au-bon-pain.lcs.mit.edu \
--cc=caml-list@margaux \
/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