<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/11/9e4e4eb21a94ca146eba848ea87020c3"
  from="Kamil Shakirov &lt;kamils@i...&gt;"
  author="Kamil Shakirov"
  date="2003-11-01T14:04:55"
  subject="Re: [Caml-list] (Newbie question): link problem"
  prev="2003/11/46ec1c110659f2faed3dcf6dda651523"
  next="2003/11/c3aa57eaa89ca8bc476840b3c670101f"
  prev-in-thread="2003/11/46ec1c110659f2faed3dcf6dda651523"
  next-in-thread="2003/11/b3c61d3d6da1f07790569c5f1a5b57bb"
  prev-thread="2003/11/ef16d1e3fc9cfc0de7b75563837e0c7c"
  next-thread="2003/11/c3aa57eaa89ca8bc476840b3c670101f"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] (Newbie question): link problem">
<msg 
  url="2003/11/46ec1c110659f2faed3dcf6dda651523"
  from="Manfred Lotz &lt;manfred.lotz@w...&gt;"
  author="Manfred Lotz"
  date="2003-11-01T13:20:29"
  subject="[Caml-list] (Newbie question): link problem">
<msg 
  url="2003/11/9e4e4eb21a94ca146eba848ea87020c3"
  from="Kamil Shakirov &lt;kamils@i...&gt;"
  author="Kamil Shakirov"
  date="2003-11-01T14:04:55"
  subject="Re: [Caml-list] (Newbie question): link problem">
<msg 
  url="2003/11/b3c61d3d6da1f07790569c5f1a5b57bb"
  from="Manfred Lotz &lt;manfred.lotz@w...&gt;"
  author="Manfred Lotz"
  date="2003-11-01T15:39:47"
  subject="[Caml-list] Re: (Newbie question): link problem">
</msg>
</msg>
</msg>
</thread>

<contents>
Hello,

Manfred Lotz &lt;manfred.lotz@web.de&gt; writes:

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

</contents>

</message>

