comp.lang.ada
 help / color / mirror / Atom feed
From: Ding-yuan Sheu <dsheu@afit.af.mil>
Subject: Re: Interface between ADA and C++
Date: 1996/05/29
Date: 1996-05-29T00:00:00+00:00	[thread overview]
Message-ID: <31AC5878.41C6@afit.af.mil> (raw)
In-Reply-To: 1996May29.083850.24678@hrbicf


Ken Slater wrote:
> 

> I have just started using GNAT on a Silicon Graphics Indy workstation and
> was also wondering how easy it was to interface to C++. Do you use pragmas?
> Is there any sample code showing how this is done? 

Yes, you can download "c++-interface" in 

"ftp://ftp.cdrom.com/pub/languages/ada/compiler/gnat/distrib/docs/"

This article has an example that shows how to interface a C++ class
from Ada programs. I still try to interface an Ada tagged type from
C++ programs but I have not successed yet.

>Is it dependent on the C++ compiler used (i.e. must you use gcc)?

No, you still can use the CC (SGI's C++ complier) and GNAT.
However, I has to reminder you that GNAT's C++ LOW-LEVEL interface
capability is defined for third party venders not for programmers.
If you want to do this kind of work by youeself, I'll say it is not
easy especially for large system.




  reply	other threads:[~1996-05-29  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-22  0:00 Interface between ADA and C++ Norbert Roeben
1996-05-23  0:00 ` Kevin F. Quinn
1996-05-23  0:00   ` Mike Young
1996-05-24  0:00     ` Darren C Davenport
1996-05-29  0:00       ` Ken Slater
1996-05-29  0:00         ` Ding-yuan Sheu [this message]
1996-05-24  0:00 ` Vincent P. Amiot
replies disabled

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