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 RAA25182; Sun, 4 Jul 2004 17:08:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA25260 for ; Sun, 4 Jul 2004 17:08:01 +0200 (MET DST) Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i64F80SH031857 for ; Sun, 4 Jul 2004 17:08:01 +0200 Received: from localhost (172.16.1.79) by smtp1.libero.it (7.0.027-DD01) id 40C7315F0056D479 for caml-list@inria.fr; Sun, 4 Jul 2004 17:08:09 +0200 Received: from tiscali.it (212.141.110.89) by smtp0.libero.it (7.0.027-DD01) id 40CB280C016B3D5F for caml-list@inria.fr; Sun, 4 Jul 2004 17:08:00 +0200 Message-ID: <40E81C1E.4000201@tiscali.it> Date: Sun, 04 Jul 2004 17:02:54 +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=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at libero.it X-Miltered: at concorde with ID 40E81D50.001 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