Version française
Home     About     Download     Resources     Contact us    
Browse thread
RE: [Caml-list] Segmentation Fault on #load
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Beck01, Wolfgang <BeckW@t...>
Subject: RE: [Caml-list] Segmentation Fault on #load

You wrote:
> $ ocaml
>        Objective Caml version 3.07+2
>
> # #load pretty.cmo;;
> 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