[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2003-11-01 (14:04) |
From: | Kamil Shakirov <kamils@i...> |
Subject: | Re: [Caml-list] (Newbie question): link problem |
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