caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Keisuke Nakano <ksk@mist.i.u-tokyo.ac.jp>
To: Luca <ululuca@tiscali.it>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Reference to undefined global `Toploop'
Date: Mon, 5 Jul 2004 11:00:43 +0900	[thread overview]
Message-ID: <1FA32794-CE27-11D8-80FD-000393CC1F60@mist.i.u-tokyo.ac.jp> (raw)
In-Reply-To: <40E81DB7.4090206@tiscali.it>

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


  reply	other threads:[~2004-07-05  2:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-04 15:09 Luca
2004-07-05  2:00 ` Keisuke Nakano [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-07-04 15:02 Luca

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1FA32794-CE27-11D8-80FD-000393CC1F60@mist.i.u-tokyo.ac.jp \
    --to=ksk@mist.i.u-tokyo.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=ululuca@tiscali.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).