comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: linking with C++
Date: 1998/04/21
Date: 1998-04-21T00:00:00+00:00	[thread overview]
Message-ID: <dewar.893163797@merv> (raw)
In-Reply-To: 6hglkj$dlh$1@nyheter.chalmers.se


Martin, I think you have very little chance of succeeding with this attempt
at direct interfacing. If you want to pursue this, read carefully the
documentation on the special C++ interfacing pragmas in GNAT.

These C++ interfacing pragmas are very powerful, and are used for example
by SGI to give access to their C++ graphics packages like Inventor.

But you really have to know what you are doing to use them. Generally they
are intended for use by a binding generator, not by humans. They can be
used by humans, but you really need to understand a lot.

The easiest thing for most people is to write a C wrapper for their C++
code and to interface to the C wrapper. This can be done using only
standard features of the language as described in annex B of the RM.

Robert Dewar
Ada Core Technologies





  reply	other threads:[~1998-04-21  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-20  0:00 linking with C++ Martin Klang
1998-04-21  0:00 ` Robert Dewar [this message]
1998-04-23  0:00   ` [GNAT] Extending a C++ class Jacob Sparre Andersen
1998-04-21  0:00 ` linking with C++ Jerry van Dijk
1998-04-21  0:00 ` Justin Braach
1998-04-21  0:00 ` Robert Dewar
replies disabled

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