From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA04715; Tue, 17 Jun 2003 14:26:46 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA04520 for ; Tue, 17 Jun 2003 14:26:44 +0200 (MET DST) Received: from isis.lip6.fr (isis.lip6.fr [132.227.60.2]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h5HCQiT29059 for ; Tue, 17 Jun 2003 14:26:44 +0200 (MET DST) Received: from spi.lip6.fr (spi.lip6.fr [132.227.83.193]) by isis.lip6.fr (8.12.9/jtpda-5.4+victor) with ESMTP id h5HCQhGK018342 ; Tue, 17 Jun 2003 14:26:43 +0200 X-pt: isis.lip6.fr Received: from inria.fr ([132.227.66.219]) by spi.lip6.fr (8.11.6/jtpda-5.2) with ESMTP id h5HCR5301222 ; Tue, 17 Jun 2003 14:27:05 +0200 Date: Tue, 17 Jun 2003 14:26:56 +0200 Subject: Re: [Caml-list] Dumb question on bytecode compiler Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) Cc: caml-list@inria.fr To: John Skaller From: Damien Doligez In-Reply-To: <3EEDDDEE.2000100@ozemail.com.au> Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.552) X-Scanned-By: isis.lip6.fr X-Spam: no; 0.00; damien:01 caml-list:01 flx:01 foobar:01 bug:01 compiler:01 bytecode:01 doligez:01 native-code:02 linking:02 o'caml:02 identifier:03 module:03 cma:03 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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