comp.lang.ada
 help / color / mirror / Atom feed
From: Yves Bailly <kafka.fr@laposte.net>
Subject: Re: Calling C++ from Ada
Date: Sat, 13 May 2006 21:08:33 +0200
Date: 2006-05-13T21:08:43+02:00	[thread overview]
Message-ID: <pan.2006.05.13.19.08.31.558868@laposte.net> (raw)
In-Reply-To: s1ghj3-e5m.ln1@newserver.thecreems.com

On Sat, 13 May 2006 13:02:33 -0400, Jeffrey Creem wrote:
> Yves Bailly wrote:
>> I'm trying to use C++ classes from an Ada program. Searching around, I
>> found some examples, but none implying a non-default constructor.
> 
> Direct interface to C++ from Ada is outside the scope of the Ada (at 
> least 95) LRM. 

I'm aware of this. It's not much better either in the new 2005(6?7?)
standard.

> GNAT has some vendor specific pragmas that can be used
> but I have never heard of any widespread use of these pragmas in any
> publically avaialble code.

I tried to use them, with some success on simple things. At least for now,
these vendor-specific pragmas are not a real issue, I'm just experimenting.

> You probably need to interface to it the same way a C programmer would -
> with non classed based externs.

I guess I'll end doing this... 

To paint a little of the whole story, I was looking for a tool allowing
to automagically generate an Ada thin binding for a C++-based library.
To many classes and methods to create it "by hand". However I didn't find
any, so I was thinking on creating one myself.

Thanks anyway for your lights.

Best regards,

      Yves Bailly




  reply	other threads:[~2006-05-13 19:08 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-13 14:48 Calling C++ from Ada Yves Bailly
2006-05-13 17:02 ` Jeffrey Creem
2006-05-13 19:08   ` Yves Bailly [this message]
2006-05-13 19:55     ` Jeffrey Creem
2006-05-14  8:59       ` Yves Bailly
2006-05-14 13:39         ` Jeffrey Creem
2006-05-14 18:38         ` Jeffrey R. Carter
2006-05-15 15:24       ` rodkay
2006-05-15 16:23         ` Jeffrey Creem
2006-05-16  2:14         ` Gene
2006-05-16  4:31           ` rodkay
2006-05-16 11:47             ` Jeffrey Creem
2006-05-17  4:53               ` rodkay
2006-05-17  6:05                 ` Martin Krischik
2006-05-25  5:34                   ` rodkay
2006-05-25 11:29                     ` Alex R. Mosteo
2006-05-29  3:43                       ` Gene
2006-05-29 14:53                         ` rodkay
2006-05-29 17:48                         ` Martin Krischik
2006-05-13 22:38     ` Craig Carey
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox