TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 11 Sep 2000 11:19:06 -0400
From: Ada Marketing <[log in to unmask]>
Content-Transfer-Encoding: 7bit
Organization: Aonix
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Parts/Attachments: text/plain (40 lines)
Crispen, Bob wrote:
> The fire has burned under the open-source HLA RTI
> pot for long enough that it's starting to bubble.
> One of the issues that's come up is that there are two
> codebases which might be used: one in Ada95 and
> one in C++.
> Has anyone here ever integrated C++ and Ada?  I'm
> talking about C++ on the class level, not some little
> library functions with a C-like interface, but medium-
> sized reusable elements in C++ as well as Ada95.

We have some customers doing this.  I believe the main trick is to declare the
C++ methods as static at the interface point.  This principally turns off the
C++ name mangling, so the Ada side knows what the function name is.

> It seems that it might be theoretically possible given
> the codebase behind gnat and g++, though I gather
> egcs has complicated things?  The problem is, I've
> fallen too far behind in understanding some of the
> underlying stuff to even make an educated guess.
> I don't want to recommend something to an effort I
> care very much about if there isn't a solid background
> of success doing this.  There are simply not enough
> hands on the open RTI project to do research into
> making Ada95 play with C++.
> Bob Crispen
> [log in to unmask]


Greg Gicca
Aonix Ada Marketing account
[log in to unmask]