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
OCamldebug custom Big_int printer
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-04-12 (21:28)
From: Denis Bueno <dbueno@g...>
Subject: OCamldebug custom Big_int printer
My goal is to define a printer I can load in ocamldebug, to print
Big_int.big_int values. I have the following in the file

    open Format;;

    let print_big_int fmt i =
      pp_print_string fmt (Big_int.string_of_big_int i);;

After executing ocamldebug (through emacs), I run:

(ocd) load_printer "ocamld_printers.cmo"
Error during code loading: error while linking
Reference to undefined global `Big_int'

Does anyone know how to fix this problem? ocamldebug doesn't seem to
have options for specifying which .cma files to load. And the program
being debugged does indeed link with nums.cma.

Thanks in advance.