Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Bug in Linker?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: shail@a...
Subject: Bug in Linker?


	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 in which I define a variable, say "bar".  I
have another file in which I open "foo_aux" and then use "bar"
inside it.

Now, I compile and one by one in that sequence
(using the make facility). While compiling, the compiler gives
me errors saying that "foo_aux__bar" is referenced before being

Surprisingly, the file foo.zo is still present. I link it with the
rest of the program and it works fine!! If I compile 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.