Version française
Home     About     Download     Resources     Contact us    
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
    ./mytop

Brian

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


>>>>> "Claudio" == Claudio Trento <trento@di.unipi.it> writes:

  Claudio> I`ve included the line "open Num" at the begin of my
  Claudio> test.ml 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> caml-list-request@inria.fr Archives: http://caml.inria.fr
  Claudio> Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ:
  Claudio> http://caml.inria.fr/FAQ/ Beginner's list:
  Claudio> http://groups.yahoo.com/group/ocaml_beginners

-------------------
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