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: briand@a...
Subject: [Caml-list] Porblem with Num module
It's in the manual (just for future reference).

If you are using a system which supports dynamic linking you can just do

    #load "num.cma";;

if you are using windows which does not support dynamic linking you will
have to compile.

    ocamlc other_options num.cma other_files

Or make your own top-level which includes num:

    ocamlmktop -o mytop num.cma


P.S. In the manual it actually lists the filename as "nums" not "num".
Is this a documentation bug ?

>>>>> "Claudio" == Claudio Trento <> writes:

  Claudio> I`ve included the line "open Num" at the begin of my
  Claudio> file to use the Num module. Maybe it's not enough
  Claudio> because I've this type of error in cmpilation:

  Claudio> "Error while linking test.cmo: Reference to undefined
  Claudio> global `Num'"

  Claudio> Probably I forget something, someone could say me where I
  Claudio> mistake?

  Claudio> Thanks, Claudio

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

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