Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2003-10-28 (15:49)
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.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: