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 KAA08425; Fri, 2 Jul 2004 10:00:50 +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 KAA09977 for ; Fri, 2 Jul 2004 10:00:49 +0200 (MET DST) Received: from annexia.force9.co.uk (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i6280mEV016312 for ; Fri, 2 Jul 2004 10:00:49 +0200 Received: from rich by annexia.force9.co.uk with local (Exim 3.36 #1 (Debian)) id 1BgIyW-0004kL-00 for ; Fri, 02 Jul 2004 09:00:48 +0100 Date: Fri, 2 Jul 2004 09:00:48 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Toplevel with external functions crashes. Any ideas? Message-ID: <20040702080048.GA18213@redhat.com> References: <20040701201028.99244.qmail@web90107.mail.scd.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040701201028.99244.qmail@web90107.mail.scd.yahoo.com> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at nez-perce with ID 40E51630.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 crashes:01 2004:99 libray:01 gdb:01 vectors:01 hashes:01 funcs:01 allocator:01 ltd:98 ocaml:01 ocaml:01 0700,:01 toplevel:01 toplevel:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Jul 01, 2004 at 01:10:28PM -0700, Andy Yang wrote: > Hi, all > > I am trying to build an Ocaml interface for a C++ > library. I build a set of C wrapper functions for the > libray, and build the C/Ocaml interface with it. The > Ocaml interface works well when I call them in .ml > files. However, when I tried to build a toplevel which > can interactively call these functions, segmentation > fault happens. It seems that it is not because of the > errors in my interface codes. Does anybody have any > idea about this? Not much to go on here. Can you post some minimal code which demonstrates the problem, and/or post a stack trace from gdb? Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment C2LIB is a library of basic Perl/STL-like types for C. Vectors, hashes, trees, string funcs, pool allocator: http://www.annexia.org/freeware/c2lib/ ------------------- 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