Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Porblem with Num module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
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 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?
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
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

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: