comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Accessing C++
Date: 1995/04/19
Date: 1995-04-19T00:00:00+00:00	[thread overview]
Message-ID: <dewar.798296862@gnat> (raw)
In-Reply-To: 3n2su7$deh@ubszh.fh.zh.ubs.com

Mixing Ada and C++ is not trivial, and certainly you should not expect
it to work without interacting with the Ada vendor to determine how it
should be done. Both Ada and C++ need to own the world (to deal with
initialization and finalization), and this may well cause difficulties.
In general I would expect it to be difficult unless the Ada vendor has
specifically taken steps to make it work (or the C++ vendor :-)

I assume you are wrapping the C++ stuff in C, since obviously it won't work
to call it directly unless the Ada compiler knows a lot about the C++ 
compiler including its name crunching algorithm.

GNAT interfaces quite smoothly with C++, but this did not happen accidentally,
it took quite a bit of design, technical work, and fiddling!





      reply	other threads:[~1995-04-19  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-04-19  0:00 Accessing C++ Ulrika Bornetun
1995-04-19  0:00 ` Robert Dewar [this message]
replies disabled

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