From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12256 invoked by alias); 2 Oct 2004 12:25:42 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 12248 invoked from network); 2 Oct 2004 12:25:40 -0000 Received: from unknown (HELO mail16.ha.ovh.net) (213.186.33.51) by sourceware.org with SMTP; 2 Oct 2004 12:25:40 -0000 Received: (qmail 22667 invoked by uid 503); 2 Oct 2004 12:25:40 -0000 Received: from d213-103-9-193.cust.tele2.fr (HELO ?192.168.1.100?) (laurent%guerby.net@213.103.9.193) by ns0.ovh.net with SMTP; 2 Oct 2004 12:25:40 -0000 Subject: Re: C++ and Ada. From: Laurent GUERBY To: Daniel Lundqvist Cc: gcc@gcc.gnu.org In-Reply-To: <415E9A68.5050009@malarhojden.nu> References: <415E9A68.5050009@malarhojden.nu> Content-Type: text/plain Message-Id: <1096719923.29350.15.camel@pc.site> Mime-Version: 1.0 Date: Sat, 02 Oct 2004 18:34:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2004-10/txt/msg00067.txt.bz2 I'm not an expert on C++/Ada interfacing, but did you try importing with the C convention? Otherwise my best advice would be to submit a testcase and detailed explanations on http://gcc.gnu.org/bugzilla/ Laurent On Sat, 2004-10-02 at 14:09, Daniel Lundqvist wrote: > Hi, > > I've been toying around with Ada lately. Trying to add Ada bindings to a > C++ library. Almost everything works perfect except one thing. > I can't seem to import classes without virtual tables. > > Pragma CPP_Constructor seem to require tagged types. And if I mark the > type tagged Pragma CPP_Class needs it to have a Vtable_Ptr field. But > then gnats idea of how class looks like isn't correct. > > Is there a way around this? > > I'm still quite new to Ada so I've probably missed something. > > If this is not the right forum for this I would appreciate pointers in > the right direction. > > Thanks in advance, > Daniel. > >