From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA15350; Tue, 28 Oct 2003 16:49:20 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA04259 for ; Tue, 28 Oct 2003 16:49:19 +0100 (MET) Received: from mail1.telekom.de (mail1.telekom.de [62.225.183.202]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h9SFnI124751 for ; Tue, 28 Oct 2003 16:49:18 +0100 (MET) Received: from g9jbr.mgb01.telekom.de by G8SBV.dmz.telekom.de with ESMTP; Tue, 28 Oct 2003 16:47:08 +0100 Received: by G9JBR.mgb01.telekom.de with Internet Mail Service (5.5.2653.19) id ; Tue, 28 Oct 2003 16:47:08 +0100 Message-Id: From: "Beck01, Wolfgang" To: edahlman@atcorp.com, caml-list@inria.fr Subject: RE: [Caml-list] Segmentation Fault on #load Date: Tue, 28 Oct 2003 16:47:04 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Loop: caml-list@inria.fr X-Spam: no; 0.00; t-systems:01 caml-list:01 3.07:01 dumped:01 'ocaml':01 ocamlmktop:01 ocamlc:01 faq:01 linked:01 cmo:01 cmo:01 ocaml:01 ocaml:01 caml:01 command:98 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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