Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Dumb question on bytecode compiler
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Damien Doligez <Damien.Doligez@i...>
Subject: Re: [Caml-list] Dumb question on bytecode compiler
On Monday, June 16, 2003, at 05:10 PM, John Skaller wrote:

> Error while linking src/flxlib.cma(Flx_lex):
> Reference to undefined global `Flx_lex'

You have used a fully-qualified identifier of Flx_lex inside Flx_lex
itself (for example, Flx_lex.foobar).  This is a violation of the 
scoping
rules of O'Caml : the name of the current module is not visible inside
the body of the module itself.  The native-code linker doesn't notice 
because
it is restricted to a flat name space.

> FYI: the source for Flx_lex is generated by ocamllex.

The bug is in a part that you have written by hand.

-- Damien

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