From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 D7E2FD45F for ; Mon, 31 Oct 2005 04:02:11 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j9V32ASq031332 for ; Mon, 31 Oct 2005 04:02:11 +0100 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 EAA00290 for ; Mon, 31 Oct 2005 04:02:09 +0100 (MET) Received: from mail.rsise.anu.edu.au (mail.rsise.anu.edu.au [150.203.208.4]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j9V3267K010037 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 31 Oct 2005 04:02:08 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.rsise.anu.edu.au (Postfix) with ESMTP id 2D1D6739E0 for ; Mon, 31 Oct 2005 14:02:03 +1100 (EST) Received: from mail.rsise.anu.edu.au ([150.203.208.4]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14871-04 for ; Mon, 31 Oct 2005 14:02:03 +1100 (EST) Received: from pulp.rsise.anu.edu.au (pulp.rsise.anu.edu.au [150.203.208.49]) by mail.rsise.anu.edu.au (Postfix) with ESMTP id 1A72C739DD for ; Mon, 31 Oct 2005 14:02:00 +1100 (EST) Received: by pulp.rsise.anu.edu.au (Postfix, from userid 1560) id 0D76225B28D; Mon, 31 Oct 2005 14:01:50 +1100 (EST) Date: Mon, 31 Oct 2005 14:01:50 +1100 From: Pietro Abate To: ocaml ml Subject: ocamlfind syntax problem Message-ID: <20051031030150.GA601@pulp.anu.edu.au> Mail-Followup-To: Pietro Abate , ocaml ml MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: GNU/Linux X-Organization: Research School of Information Science and Engineering (Australian National University) User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mail.rsise.anu.edu.au X-Miltered: at concorde with ID 43658932.003 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4365892E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; anu:01 ocamlfind:01 syntax:01 ocamlfind:01 syntax:01 ocaml:01 stdlib:01 destdir:01 cmo:01 ocamlc:01 -package:01 ocamlc:01 -package:01 stdlib:01 destdir:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Hi all, I'm trying to learn how to use ocamlfind with camlp4 syntax files. The problem is that my syntax file uses extlib and I get an undefined reference to ExtLib when I try to compile everything with ocamlfind. Since now I've compiled it following these steps: 1) I generate the ocaml code from my example using my syntax (with str and extlib) # camlp4o $STDLIB/str.cma $DESTDIR/extlib/extLib.cma syntaxfile.cma pr_o.cmo myex.ml > myex-pp.ml 2) I compile the result using other packages and ocamlfind. # ocamlfind ocamlc -package mypackages myex-pp.ml now I'm trying to skip the intermediate step. Therefore I've created my meta file that looks like this: version = "0.1" description = "syn file" requires = "camlp4 extlib" archive(syntax,preprocessor) = "syntaxfile.cma" and I'm trying to link everything together with: #ocamlfind ocamlc -package mypackages,syntaxfile -syntax syntaxfile myex.ml but it complains that syntaxfile.cma has a Reference to undefined global `ExtLib'. adding extlib to mypackages doesn't help... how can I pass $STDLIB/str.cma $DESTDIR/extlib/extLib.cma to the preprocessor via ocamlfind ? :) p ps: my compilation infrastructure is more complex, but I think the problem boils down to what I've described above. -- ++ Blog: http://blog.rsise.anu.edu.au/?q=pietro ++ ++ "All great truths begin as blasphemies." -George Bernard Shaw ++ Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html