Browse thread
[Caml-list] Porblem with Num module
-
Claudio Trento
- Richard Jones
- briand@a...
- Virgile Prevosto
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-05-14 (08:27) |
From: | Virgile Prevosto <prevosto@m...> |
Subject: | Re: [Caml-list] Porblem with Num module |
Le jeudi 13 mai, à 16h30 +0200, Claudio Trento a écrit: > 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: > > "Error while linking test.cmo: Reference to undefined global `Num'" > > Probably I forget something, someone could say me where I mistake? > Hello, I suppose you're talking about the Num library described in the ocaml manual at <http://pauillac.inria.fr/ocaml/htmlman/manual036.html>. 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 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, -- 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