<?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="2002/12/838549db9eab58c179d31f32eefdf381"
  from="altavillasalvatore@libero.it &lt;altavillasalvatore@l...&gt;"
  author="altavillasalvatore@libero.it"
  date="2002-12-02T18:23:47"
  subject="[Caml-list] compilation_problem"
  prev="2002/12/01b22e6f3b5a5470860e77cba7c48d8e"
  next="2002/12/1b4c379f89d855c9d1298bdf96e7bbdb"
  next-in-thread="2002/12/870fe08760fc2e92b95c37dd5aa5e54d"
  prev-thread="2002/12/67f44329195eaf652b43093fd3ca01ba"
  next-thread="2002/12/28fc7801c74d2b5e69dc9c4f54d9779e"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] compilation_problem">
<msg 
  url="2002/12/838549db9eab58c179d31f32eefdf381"
  from="altavillasalvatore@libero.it &lt;altavillasalvatore@l...&gt;"
  author="altavillasalvatore@libero.it"
  date="2002-12-02T18:23:47"
  subject="[Caml-list] compilation_problem">
<msg 
  url="2002/12/870fe08760fc2e92b95c37dd5aa5e54d"
  from="Maxence Guesdon &lt;maxence.guesdon@i...&gt;"
  author="Maxence Guesdon"
  date="2002-12-03T07:44:45"
  subject="Re: [Caml-list] compilation problem">
</msg>
</msg>
</thread>

<contents>
Hi,
I would want to compile the pascal.ml file:

****
pascal.ml
 open Unix
      let my_name =Unix.gethostname();;
******
I type

 ocamlc -custom unix.cma pascal.ml -cclib -lunix  

and then

 ocamlc pascal.ml -o pascal

obtaining the following message:

 Reference to undefined global `Unix'  

I would want the exec -file.

Regards.

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

