<?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/10/c1b3604e135e1af292dc946e44d238a2"
  from="Beck01, Wolfgang &lt;BeckW@t...&gt;"
  author="Beck01, Wolfgang"
  date="2003-10-28T15:49:20"
  subject="RE: [Caml-list] Segmentation Fault on #load"
  prev="2003/10/36fc484e0287ec54175420cdd6ec261b"
  next="2003/10/a75e455eb3336fb1f0cf951bb9875a63"
  next-in-thread="2003/10/a75e455eb3336fb1f0cf951bb9875a63"
  prev-thread="2003/10/efb658b597112375ea273e58d0ced726"
  next-thread="2003/10/5ebf3a77f0f4aa8b69a3ae8441a03d5c"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="RE: [Caml-list] Segmentation Fault on #load">
<msg 
  url="2003/10/c1b3604e135e1af292dc946e44d238a2"
  from="Beck01, Wolfgang &lt;BeckW@t...&gt;"
  author="Beck01, Wolfgang"
  date="2003-10-28T15:49:20"
  subject="RE: [Caml-list] Segmentation Fault on #load">
<msg 
  url="2003/10/a75e455eb3336fb1f0cf951bb9875a63"
  from="David Brown &lt;caml-list@d...&gt;"
  author="David Brown"
  date="2003-10-28T16:05:55"
  subject="Re: [Caml-list] Segmentation Fault on #load">
<msg 
  url="2003/10/10f3bfdfbc317ad55d29c21497b15b7c"
  from="Oleg Trott &lt;oleg_trott@c...&gt;"
  author="Oleg Trott"
  date="2003-10-28T19:38:12"
  subject="Re: [Caml-list] Segmentation Fault on #load">
</msg>
</msg>
<msg 
  url="2003/10/b8f336f0f79b772c5a41bb761c3e00a2"
  from="Stefano Zacchiroli &lt;zack@b...&gt;"
  author="Stefano Zacchiroli"
  date="2003-10-28T16:11:57"
  subject="Re: [Caml-list] Segmentation Fault on #load">
</msg>
</msg>
</thread>

<contents>

You wrote:
&gt; $ ocaml
&gt;        Objective Caml version 3.07+2
&gt;
&gt; # #load pretty.cmo;;
&gt; Segmentation fault (core dumped)

Loading object files into the ocaml toplevel is not a good idea.
It's like loading pretty.cmo in your text editor (which looks
not pretty).

If you have the source code of pretty.cmo, load it (#load "pretty.mL").
If not, you have to build a toplevel (the 'ocaml' command)
linked to your object file or library. To do this, read the manual page of
ocamlmktop. This program works like ocamlc, but builds a program
that works like the ocaml command. This should be in a FAQ.


Wolfgang

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

