English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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