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 LAA23578; Thu, 25 Jul 2002 11:17:00 +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 LAA23285 for ; Thu, 25 Jul 2002 11:17:00 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6P9GsT13076; Thu, 25 Jul 2002 11:16:54 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA23476; Thu, 25 Jul 2002 11:16:53 +0200 (MET DST) Date: Thu, 25 Jul 2002 11:16:53 +0200 From: Xavier Leroy To: Rolf Wester Cc: caml-list@inria.fr Subject: Re: [Caml-list] Problem building custom toplevel Message-ID: <20020725111653.B22996@pauillac.inria.fr> References: <200207221608.17010.rolf.wester@ilt.fraunhofer.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200207221608.17010.rolf.wester@ilt.fraunhofer.de>; from rolf.wester@ilt.fhg.de on Mon, Jul 22, 2002 at 04:08:16PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I have a c++-library compiled with the icc-compiler, a c-interface to this > library (cinterface.h and cinterface.cpp) and stubs files generated using > camlidl (ocaml_opt.idl, ocaml_opt_stubs.cpp, ocaml_opt.ml, ocaml_opt.mli). > I try to build a custom toplevel with: > [...] > but get an almost endless list of undefined references (almost 6000 lines of > output). Here some examples: I avoid C++ as much as I can, so this is just a wild guess. Could it be that you're calling the wrong linker? ocamlmltop -custom performs its linking stage by calling the C compiler that was used to build OCaml, usually cc or gcc. (You can see exactly how the linker is called by adding the flag -verbose.) Maybe you need to use icc as the linker, or pass some magic flag to it telling that you're using C++ libraries. You can do that with the -cc flag, e.g. ocamlmktop -cc "icc " -custom ... Good luck, - Xavier Leroy ------------------- 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