From: Virgile Prevosto <prevosto@mpi-sb.mpg.de>
To: Claudio Trento <trento@di.unipi.it>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Porblem with Num module
Date: Fri, 14 May 2004 10:26:58 +0200 [thread overview]
Message-ID: <20040514102658.55b3d9e6@mpiat2314> (raw)
In-Reply-To: <Pine.LNX.4.44.0405131615360.32446-100000@nutella.di.unipi.it>
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
prev parent reply other threads:[~2004-05-14 8:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-13 14:30 Claudio Trento
2004-05-13 15:14 ` Richard Jones
2004-05-13 15:39 ` briand
2004-05-15 6:00 ` William Lovas
2004-05-15 6:20 ` Shawn Wagner
2004-05-15 10:02 ` Richard Jones
2004-05-14 8:26 ` Virgile Prevosto [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040514102658.55b3d9e6@mpiat2314 \
--to=prevosto@mpi-sb.mpg.de \
--cc=caml-list@inria.fr \
--cc=trento@di.unipi.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox