This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ and Ada.
- From: Laurent GUERBY <laurent at guerby dot net>
- To: Daniel Lundqvist <daniel at malarhojden dot nu>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 02 Oct 2004 14:25:24 +0200
- Subject: Re: C++ and Ada.
- References: <415E9A68.5050009@malarhojden.nu>
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.
>
>