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.1 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 647DFBC69 for ; Wed, 11 Apr 2007 10:04:17 +0200 (CEST) Received: from [128.93.11.101] (buzet.inria.fr [128.93.11.101]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3B84D1Z027358; Wed, 11 Apr 2007 10:04:13 +0200 Message-ID: <461C967A.6000007@inria.fr> Date: Wed, 11 Apr 2007 10:04:10 +0200 From: Alain Frisch User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: Jeff Henrikson Cc: caml-list@inria.fr Subject: Re: [Caml-list] nonresolved .cma files and errors References: <461C50C7.6090802@yahoo.com> In-Reply-To: <461C50C7.6090802@yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 461C967D.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; frisch:01 frisch:01 henrikson:01 camlp:01 camlp:01 notation:01 cmo:01 cmo:01 compilation:01 -pack:01 compiler:01 shocking:98 wrote:01 binaries:01 preprocessor:01 Jeff Henrikson wrote: > I recently had a shocking realization about why some of my experiments > with camlp4 weren't compiling. I had been linking camlp4.cma, which was > the old name of the library. Now camlp4.cma doesn't exist and there are > multiple flavors Camlp4xxx.cma where the xxx is the same flavor notation > of the the preprocessor binaries. So the trouble is, why was linking > such a library not a fatal? Apparently all missing .cma and .cmo files > passed on the command line are considered non-errors. .cma and .cmo files are not used during compilation. They make sense only for link operations (including -pack and -a). One might argue that the compiler should issue a warning when useless .cma and .cmo are given on the command line. -- Alain