comp.lang.ada
 help / color / mirror / Atom feed
From: "Marc A. Criley" <mcq95@earthlink.net>
Subject: Re: Rational Apex Ada - Pragma interface with C++
Date: Fri, 11 Oct 2002 11:12:36 GMT
Date: 2002-10-11T11:12:36+00:00	[thread overview]
Message-ID: <3DA6B3DA.98A0240E@earthlink.net> (raw)
In-Reply-To: H3s05H.LMt@news.boeing.com

John Smith wrote:
> 
> Does anyone know how to use pragma interface for interfacing C++ functions
> to an Ada program.  I know how to do it with C, but can't seem to get it to
> work with C++.

There are detailed instructions in the Apex documentation on how to do
this,
and they do work.

The part that isn't mentioned, though, is that the C++ _must_ be
compiled
with Apex C++. Otherwise the run-time environments conflict, and the
resulting executable runs unreliably, if at all, which was our
experience.
This rather significant restriction was stated by a Rational
representative.

Originally, the C++ code we had to link in was compiled with Sun's Forte
C++, and we were fortunate that the nature of the code was highly
algorithmic and portable, so compiling it with Apex C++ went quite
smoothly.

Marc A. Criley
Quadrus Corporation
www.quadruscorp.com



  parent reply	other threads:[~2002-10-11 11:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10 17:20 Rational Apex Ada - Pragma interface with C++ John Smith
2002-10-10 19:32 ` Stephen Leake
2002-10-10 21:47 ` Matthew Heaney
2002-10-14 16:41   ` John Smith
2002-10-14 23:03   ` John Smith
2002-10-15  0:12     ` Jeffrey Creem
2002-10-15  1:08       ` John Smith
2002-10-15 13:31         ` Ted Dennison
2002-10-11 11:12 ` Marc A. Criley [this message]
2002-10-14 16:28   ` John Smith
replies disabled

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