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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id BE8F1BB9B for ; Thu, 6 Oct 2005 09:25:51 +0200 (CEST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.194]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j967PpiH003113 for ; Thu, 6 Oct 2005 09:25:51 +0200 Received: by nproxy.gmail.com with SMTP id x4so120783nfb for ; Thu, 06 Oct 2005 00:25:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PaGFpC0F/4oQliu9wABFeTt8fGMmopwC6MmoTxraP54GoE7PLmUk0/oaulsL9XLZsUaUh4YZFXcpz2k3lkhvx+ZvIz9K8Y4D52zKbFzW87z5Xr1sQ7t+GpczcBcv7Bn6ZkEhJ3pJMVrd1jfRIKZaAyXY+ZETwGo3FUmf8v5KhO8= Received: by 10.49.5.11 with SMTP id h11mr84204nfi; Thu, 06 Oct 2005 00:25:51 -0700 (PDT) Received: by 10.48.42.9 with HTTP; Thu, 6 Oct 2005 00:25:51 -0700 (PDT) Message-ID: <3d13dcfc0510060025r3604f336m@mail.gmail.com> Date: Thu, 6 Oct 2005 09:25:51 +0200 From: David MENTRE Reply-To: To: Rasool Karimi Subject: Re: [Caml-list] ocamlopt problem Cc: caml-list@yquem.inria.fr In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Miltered: at nez-perce with ID 4344D17F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocamlopt:01 mli:01 ocamlc:01 compiler:01 compilation:01 ocamlopt:01 compiler:01 ocamlc:01 syntax:01 compilers:01 ocaml:01 compilers:01 bug:01 mli:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=RCVD_BY_IP,REPLY_TO_EMPTY autolearn=disabled version=3.0.3 Hello, 2005/10/6, Rasool Karimi : > this message is in german and translation of it in english is : "The > instruction "as" is either wrongly written or could not not be found". Bu= t > when I compile a .mli file, this message is not shown and file is compile= d > successfully. Also when I compile a .ml file with ocamlc compiler, there = is > no error and compilation is done successfully. So there is not error in m= y > program and this error maybe is related to ocamlopt compiler. There is no reason that a particular error occurs with ocamlopt and not ocamlc, especially as the syntax and typing phases are common to both compilers (moreover, bugs in ocaml compilers are quite rare. Rule of thumb: never suspect a bug in the compiler, always in your code). So I would suspect an issue with your particular file or your compiling environment. We cannot say much more without (1) having your particular .ml and .mli file and (2) knowing in which environment your are compiling. Yours, d.