* Re: Accessing C++
1995-04-19 0:00 Accessing C++ Ulrika Bornetun
@ 1995-04-19 0:00 ` Robert Dewar
0 siblings, 0 replies; 2+ messages in thread
From: Robert Dewar @ 1995-04-19 0:00 UTC (permalink / raw)
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!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Accessing C++
@ 1995-04-19 0:00 Ulrika Bornetun
1995-04-19 0:00 ` Robert Dewar
0 siblings, 1 reply; 2+ messages in thread
From: Ulrika Bornetun @ 1995-04-19 0:00 UTC (permalink / raw)
No, this is not a flame bait or a this vs. that question!
I am trying access a Motif front-end program written in C++ from
my Ada main program, and I am getting into all sorts of problems.
I have successfully compiled and linked the stuff, but when I run it,
I get strange crashes deep within the C++ libraries. A similar program
that accesses the C++ front-end from C works without problems.
I am using all sorts of different libraries, linking with
multi-threading etc. on Solaris, using the Verdix compiler.
Has anybody done anything similar? Do you have any hints for me?
Is there anything inherent to the Ada/C++ mix that would make this
impossible?
ulrika
----------------------------------------------------------------------------
------ Ulrika Bornetun bre@ubszh.net.ch ------
------ Union Bank of Switzerland, Postfach, 8021 Zurich, Switzerland ------
----------------------------------------------------------------------------
------ "Let the programmers be many and the managers few -- ------
------ then all will be productive." ------
------ -- The Tao of Programming -- ------
----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-04-19 0:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-04-19 0:00 Accessing C++ Ulrika Bornetun
1995-04-19 0:00 ` Robert Dewar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox