Version française
Home     About     Download     Resources     Contact us    
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" prog.ml
> 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 <ksk@mist.i.u-tokyo.ac.jp>
Department of Mathematical Engineering and Information Physics,
University of Tokyo

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