C++ and Ada.

Laurent GUERBY laurent@guerby.net
Sat Oct 2 18:34:00 GMT 2004


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.
> 
> 



More information about the Gcc mailing list