From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA14182; Fri, 14 May 2004 10:27:08 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 KAA13194 for ; Fri, 14 May 2004 10:27:07 +0200 (MET DST) Received: from francois.mpi-sb.mpg.de (mpiat0203-1.mpi-sb.mpg.de [139.19.1.2]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i4E8R6EV022785 for ; Fri, 14 May 2004 10:27:06 +0200 Received: from amavis by francois.mpi-sb.mpg.de with scanned-ok (Exim 3.35 #1 (Debian)) id 1BOY25-0004vI-00 for ; Fri, 14 May 2004 10:27:05 +0200 Received: from data ([139.19.90.238] helo=mpi-sb.mpg.de) by francois.mpi-sb.mpg.de with esmtp (Exim 3.35 #1 (Debian)) id 1BOY1z-0004uK-00; Fri, 14 May 2004 10:26:59 +0200 Received: from mpiat2314 (mail@mpiat2314 [139.19.20.103]) by mpi-sb.mpg.de (8.12.9+Sun/8.12.9) with ESMTP id i4E8QwQU015713; Fri, 14 May 2004 10:26:58 +0200 (MEST) Received: from localhost ([127.0.0.1] helo=mpiat2314 ident=prevosto) by mpiat2314 with smtp (Exim 3.35 #1 (Debian)) id 1BOY1y-0003nc-00; Fri, 14 May 2004 10:26:58 +0200 Date: Fri, 14 May 2004 10:26:58 +0200 From: Virgile Prevosto To: Claudio Trento Cc: caml-list@inria.fr Subject: Re: [Caml-list] Porblem with Num module Message-Id: <20040514102658.55b3d9e6@mpiat2314> In-Reply-To: References: X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by AMaViS perl-11 X-Miltered: at nez-perce with ID 40A482DA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; virgile:01 prevosto:01 prevosto:01 caml-list:01 trento:99 nums:01 ocamlc:01 ocamlc:01 nums:01 virgile:01 compiler:01 htmlman:01 cmo:01 cmo:01 ecrit:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Le jeudi 13 mai, =E0 16h30 +0200, Claudio Trento a =E9crit: > I`ve included the line "open Num" at the begin of my test.ml file to > use the Num module. Maybe it's not enough because I've this type of > error in cmpilation: >=20 > "Error while linking test.cmo: Reference to undefined global `Num'" >=20 > Probably I forget something, someone could say me where I mistake? >=20 Hello, I suppose you're talking about the Num library described in the ocaml manual at . As mentionned there, you have to add nums.cma to the command line for the linking phase. This is not needed for the compilation itself (-c option of the compiler): ocamlc -c test.ml ocamlc nums.cma test.cmo=20 should work (you may have to add other .cm[o/a] files on the second line depending on what's in test of course). In addition, note that there is a subtle difference between the name of the file providing the library (nums.cma), and one of the module of this library (Num, without 's'). Hope this helps, --=20 E tutto per oggi, a la prossima volta Virgile ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners