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 PAA17498; Sat, 1 Nov 2003 15:04:55 +0100 (MET) 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 PAA17486 for ; Sat, 1 Nov 2003 15:04:53 +0100 (MET) Received: from tornado.force (cs1-ats25-dzer-193.dialup.mts-nn.ru [213.177.121.193]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hA1E4n110483 for ; Sat, 1 Nov 2003 15:04:50 +0100 (MET) Received: from tornado.force (tornado.force [127.0.0.1]) by tornado.force (8.12.8/8.12.8) with ESMTP id hA1E7x0J000921; Sat, 1 Nov 2003 17:08:00 +0300 Received: (from kamil@localhost) by tornado.force (8.12.8/8.12.8/Submit) id hA1E7vS6000919; Sat, 1 Nov 2003 17:07:57 +0300 X-Authentication-Warning: tornado.force: kamil set sender to kamils@inbox.ru using -f X-Comment-To: Manfred Lotz To: Manfred Lotz Cc: caml-list@inria.fr Subject: Re: [Caml-list] (Newbie question): link problem References: Organization: niimash From: Kamil Shakirov Date: Sat, 01 Nov 2003 17:07:57 +0300 In-Reply-To: (Manfred Lotz's message of "Sat, 01 Nov 2003 14:07:46 +0100") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 newbie:01 ocamlc:01 ocamlc:01 myprogram:01 nums:01 ocamlopt:01 myprogram:01 nums:01 3.07:01 3.07:01 -refman:01 cmo:01 cmxa:01 ocaml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, Manfred Lotz writes: > Hi there, > I try to compile a source file which uses Num: > ocamlc fac.ml > > I get: > Error while linking fac.cmo: Reference to undefined global `Num' > > Ok. Now I try: > ocamlc -cclib -lnums fac.ml > and get the same error message as above. > > What can I do? > > Manfred You must compile sources which uses Num like this ocamlc -o myprogram nums.cma mysource1.ml mysource2.ml ... or if you want to get a native version: ocamlopt -o myprogram nums.cmxa mysource1.ml mysource2.ml ... Look at the OCaml user's manual: http://caml.inria.fr/distrib/ocaml-3.07/ocaml-3.07-refman.html.tar.gz -- Kamil Shakirov ------------------- 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