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
[Caml-list] Reference to undefined global `Toploop'
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Keisuke Nakano <ksk@m...>
Subject: Re: [Caml-list] Reference to undefined global `Toploop'
On 2004/07/05, at 0:09, Luca wrote:
> Hallo,  I just finished writing an implementation of logic resolution 
> in
> Ocaml, I always worked in toplevel but now that I tired to have a
> standalone executable I get the following error
> # ocamlc -pp "camlp4o"
> Error while loading "/usr/lib/ocaml/3.07/camlp4/camlp4o.cma": error
> while linking /usr/lib/ocaml/3.07/camlp4/camlp4o.cma.
> Reference to undefined global `Toploop'
> Preprocessor error
> In toplevel everything works fine, my file starts with
> #load "camlp4o.cma";;
> use Genlex;;

How about loading "camlp4.cma" instead of "camlp4o.cma" ?
"camlp4o.cma" should be used at toplevel.

Keisuke Nakano <>
Department of Mathematical Engineering and Information Physics,
University of Tokyo

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