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] (Newbie question): link problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Kamil Shakirov <kamils@i...>
Subject: Re: [Caml-list] (Newbie question): link problem

Manfred Lotz <> writes:

> Hi there,
> I try to compile a source file which uses Num:
>   ocamlc
> I get:
> Error while linking fac.cmo: Reference to undefined global `Num'
> Ok. Now  I try:
>    ocamlc -cclib -lnums 
> 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 ...
or if you want to get a native version:
    ocamlopt -o myprogram nums.cmxa ...

Look at the OCaml user's manual:

Kamil Shakirov

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