caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Re:  Bug in Linker?
@ 1992-11-30 10:37 Damien Doligez
  0 siblings, 0 replies; 2+ messages in thread
From: Damien Doligez @ 1992-11-30 10:37 UTC (permalink / raw)
  To: shail; +Cc: caml-light

Hi,

I think you have forgotten the "-c" flag when compiling "foo.ml".
Then the compiler tries to link the program with only the "foo.zo" file.

Damien




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

* Bug in Linker?
@ 1992-11-28  3:21 Shail Aditya
  0 siblings, 0 replies; 2+ messages in thread
From: Shail Aditya @ 1992-11-28  3:21 UTC (permalink / raw)
  To: caml-list


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.




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

end of thread, other threads:[~1992-11-30 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-11-30 10:37 Bug in Linker? Damien Doligez
  -- strict thread matches above, loose matches on Subject: below --
1992-11-28  3:21 Shail Aditya

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