Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Kamil Shakirov <kamils@inbox.ru>
To: Manfred Lotz <manfred.lotz@web.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] (Newbie question): link problem
Date: Sat, 01 Nov 2003 17:07:57 +0300	[thread overview]
Message-ID: <m2y8v0yyf6.fsf@tornado.force> (raw)
In-Reply-To: <pan.2003.11.01.13.07.46.25746@web.de> (Manfred Lotz's message of "Sat, 01 Nov 2003 14:07:46 +0100")

Hello,

Manfred Lotz <manfred.lotz@web.de> writes:

> Hi there,
> I try to compile a source file which uses Num:
>   ocamlc fac.ml
>
> I get:
> Error while linking fac.cmo: Reference to undefined global `Num'
>
> Ok. Now  I try:
>    ocamlc -cclib -lnums fac.ml 
> and get the same error message as above.
>
> What can I do?
>
> Manfred

You must compile sources which uses Num like this
    ocamlc -o myprogram nums.cma mysource1.ml mysource2.ml ...
or if you want to get a native version:
    ocamlopt -o myprogram nums.cmxa mysource1.ml mysource2.ml ...

Look at the OCaml user's manual:
     http://caml.inria.fr/distrib/ocaml-3.07/ocaml-3.07-refman.html.tar.gz

-- 
Kamil Shakirov

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


  reply	other threads:[~2003-11-01 14:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-01 13:07 Manfred Lotz
2003-11-01 14:07 ` Kamil Shakirov [this message]
2003-11-01 15:27   ` [Caml-list] " Manfred Lotz

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=m2y8v0yyf6.fsf@tornado.force \
    --to=kamils@inbox.ru \
    --cc=caml-list@inria.fr \
    --cc=manfred.lotz@web.de \
    /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