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 RAA25441; Sun, 4 Jul 2004 17:14:48 +0200 (MET DST) 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 RAA25692 for ; Sun, 4 Jul 2004 17:14:47 +0200 (MET DST) Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i64FElEV018166 for ; Sun, 4 Jul 2004 17:14:47 +0200 Received: from localhost (172.16.1.83) by smtp3.libero.it (7.0.027-DD01) id 40D05D0F0050C35C for caml-list@inria.fr; Sun, 4 Jul 2004 17:14:46 +0200 Received: from tiscali.it (212.141.110.89) by smtp20.libero.it (7.0.027-DD01) id 40E3F8E2002261F6 for caml-list@inria.fr; Sun, 4 Jul 2004 17:14:46 +0200 Message-ID: <40E81DB7.4090206@tiscali.it> Date: Sun, 04 Jul 2004 17:09:43 +0200 From: Luca User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: it, en, en-us MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] Reference to undefined global `Toploop' Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at libero.it X-Miltered: at nez-perce with ID 40E81EE7.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; tiscali:99 hallo:99 ocamlc:01 -pp:01 camlp:01 usr:01 3.07:01 camlp:01 usr:01 3.07:01 ocaml:01 ocaml:01 toplevel:01 toplevel:01 lib:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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;; and then there is a little parser very similar to the one on the first chapter of ocaml-reference manual. I'm running ocaml 3.07 on a Debian ditribution of GNU/Linux. Please anyone can help me, I spent a lot of time in writing this program...:-( ------------------- 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