From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 41AACBC69 for ; Thu, 26 Apr 2007 05:03:35 +0200 (CEST) Received: from ipmail01.adl2.internode.on.net (ipmail01.adl2.internode.on.net [203.16.214.140]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3Q33XCQ026723 for ; Thu, 26 Apr 2007 05:03:34 +0200 X-IronPort-AV: E=Sophos;i="4.14,452,1170595800"; d="scan'208";a="119555310" Received: from ppp8-148.lns1.syd7.internode.on.net (HELO [192.168.1.201]) ([59.167.8.148]) by ipmail01.adl2.internode.on.net with ESMTP; 26 Apr 2007 12:33:32 +0930 Subject: Re: [Caml-list] Unbound type constructor From: skaller To: snowfall Cc: caml-list@yquem.inria.fr In-Reply-To: <10188741.post@talk.nabble.com> References: <10188741.post@talk.nabble.com> Content-Type: text/plain Date: Thu, 26 Apr 2007 13:03:29 +1000 Message-Id: <1177556609.8088.19.camel@rosella.wigram> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 46301685.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; compiler:01 parser:01 lexer:01 ocamlc:01 parser:01 mli:01 ocamlc:01 mli:01 sourceforge:01 unbound:01 unbound:01 wrote:01 compile:01 compile:01 constructor:01 On Wed, 2007-04-25 at 13:21 -0700, snowfall wrote: > Hi. > > I am developing a compiler for a language. I have done the parser, the lexer > and the ast. But when I execute the command ocamlc -c parser.mli is shown > the error "unbound type constructor abacus_ast.progr". > > and in the parser I put: > % type < Abacus_ast.progr > programa > > Can anyone tell me what I am doing wrong? yep .. you have to do ocamlc -c abacus_ast.mli first. If A depends on B, you must compile B before you compile A. This applies to all files whether ml or mli files. x.ml depends on x.mli if it exists. -- John Skaller Felix, successor to C++: http://felix.sf.net