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
[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 
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 
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 Archives:
Bug reports: FAQ:
Beginner's list: