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=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id AB26DBC0A for ; Wed, 13 Jun 2007 15:35:17 +0200 (CEST) Received: from bdmail1.accesst.com (pop.bulldoghome.com [83.245.1.230]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5DDZHXs020548 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 13 Jun 2007 15:35:17 +0200 Received: from host-84-9-232-186.bulldogdsl.com ([84.9.232.186] helo=[192.168.123.191]) by bdmail1.accesst.com with esmtpa (Exim 4.50) id 1HySvI-00027K-Or for caml-list@inria.fr; Wed, 13 Jun 2007 14:30:08 +0100 Message-ID: <466FF0D8.5060006@ed.ac.uk> Date: Wed, 13 Jun 2007 14:27:52 +0100 From: Jeremy Yallop User-Agent: Mozilla-Thunderbird 2.0.0.0 (X11/20070601) MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] building executables with camlp4 References: <466FCB46.1070304@ed.ac.uk> <466FED3B.3030405@ed.ac.uk> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 466FF295.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 ocamlc:01 -linkall:01 usr:01 ocaml:01 lib:01 ocaml:01 camlp:01 lib:01 parsers:01 cmo:01 parsers:01 cmo:01 ctyp:01 unix:01 Nicolas Pouillard wrote: >> But this doesn't: >> >> $ ocamlc -g -linkall -I /usr/local/ocaml/lib/ocaml/camlp4 \ >> -o minimal \ >> camlp4lib.cma \ >> unix.cma \ >> Camlp4Parsers/Camlp4OCamlRevisedParser.cmo \ >> Camlp4Parsers/Camlp4OCamlParser.cmo \ >> Camlp4Printers/Camlp4OCamlPrinter.cmo \ >> Camlp4Bin.cmo \ >> minimal.cmo >> $ ./minimal input.ml >> File "input.ml", line 1, characters 35-36: >> Parse error: ident_of_ctyp: this type is not an identifier > > Try to put Camlp4Bin before minimal, since it's the main so the init > section of this module is the starting point. Sorry, I don't follow. Camlp4Bin is before minimal above, right? If I reverse the order of Camlp4Bin.cmo and minimal.cmo I get Not_found errors again when I run the program. Jeremy.