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 WAA23403; Tue, 23 Jul 2002 22:41:21 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA23399 for caml-list@pauillac.inria.fr; Tue, 23 Jul 2002 22:41:20 +0200 (MET DST) 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 QAA15882 for ; Mon, 22 Jul 2002 16:09:25 +0200 (MET DST) Received: from scan2.fhg.de (scan2.fhg.de [153.96.1.37]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6ME9P112721 for ; Mon, 22 Jul 2002 16:09:25 +0200 (MET DST) Received: from scan2.fhg.de (localhost [127.0.0.1]) by scan2.fhg.de (8.11.1/8.11.1) with ESMTP id g6ME9D022211 for ; Mon, 22 Jul 2002 16:09:13 +0200 (MET DST) Received: from kso.ilt.fhg.de (eeltc2.llt.RWTH-Aachen.DE [137.226.44.2]) by scan2.fhg.de (8.11.1/8.11.1) with ESMTP id g6ME8Os22033 for ; Mon, 22 Jul 2002 16:08:24 +0200 (MET DST) Received: from ilt.fhg.de (ilt.ilt.fhg.de [153.96.180.2]) by kso.ilt.fhg.de (8.11.1/8.11.1) with ESMTP id g6ME8rk10800 for ; Mon, 22 Jul 2002 16:08:53 +0200 (MEST) Received: from eelinux12 (localhost [127.0.0.1]) by ilt.fhg.de (8.11.1/8.11.1) with ESMTP id g6ME8BO28273 for ; Mon, 22 Jul 2002 16:08:11 +0200 (MEST) Content-Type: text/plain; charset="us-ascii" From: Rolf Wester Reply-To: rolf.wester@ilt.fhg.de Organization: ILT To: caml-list@inria.fr Subject: [Caml-list] Problem building custom toplevel Date: Mon, 22 Jul 2002 16:08:16 +0200 X-Mailer: KMail [version 1.4] MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200207221608.17010.rolf.wester@ilt.fraunhofer.de> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I have a c++-library compiled with the icc-compiler, a c-interface to thi= s=20 library (cinterface.h and cinterface.cpp) and stubs files generated using= =20 camlidl (ocaml_opt.idl, ocaml_opt_stubs.cpp, ocaml_opt.ml, ocaml_opt.mli)= =2E=20 I try to build a custom toplevel with: =09ocamlmktop -custom -thread unix.cma str.cma bigarray.cma nums.cma \ threads.cm graphics.cm= a \ =09=09 ../cinterface/cinterface.o ocaml_opt_stubs.o ocaml_opt.cmo \ =09=09 /usr/lib/libexpat.a \ =09=09 /usr/lib/libdfftw.a \ /opt/intel/compiler60/ia32/lib/libcxa.so \ =09 /lib/ld-linux.so \ =09=09 ../lib/libopt.a \ =09=09 -cclib -ldl -cclib -lpthread -cclib -lutil -cclib -lm -cclib -l= c \ =09=09 -o ocaml_opt=20 but get an almost endless list of undefined references (almost 6000 lines= of=20 output). Here some examples: =2E./cinterface/cinterface.o(.text+0x1a): undefined reference to `operato= r new[](unsigned)' =2E./cinterface/cinterface.o(.text+0xb10): undefined reference to =20 `std::_String_base::_Xran() const' =2E./cinterface/cinterface.o: In function =20 `std::out_of_range::out_of_range(std::basic_string, std::allocator > const&)':=20 oe_m2.o(.gnu.linkonce.t._ZNSt6vectorIS_IdSaIdEESaIS1_EE9_Insert_nEPS1_jRK= S1_+0x95e): undefined reference to `__cxa_end_catch' oe_m2.o is in libopt.a. I don't have any idea how to solve this problem. I would be very apprecia= tive=20 for help.=20 Thanks in advance Rolf Wester P.S.: If icc is the problem, compiling libopt.a with g++ would be no opti= on.=20 But it should work somehow, I have built a shared library for use with Py= thon=20 and that one works. ------------------- 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