comp.lang.ada
 help / color / mirror / Atom feed
From: Christophe Gouiran <christophe@e-motive.com>
Subject: Re: Ada 95 and C++(again)
Date: 2000/09/26
Date: 2000-09-26T00:00:00+00:00	[thread overview]
Message-ID: <8qpim4$of1$1@nnrp1.deja.com> (raw)
In-Reply-To: wi7r96cxnnl.fsf@sleigh.irisa.fr

In article <wi7r96cxnnl.fsf@sleigh.irisa.fr>,
  Alain Le Guennec <Alain.Le_Guennec@irisa.fr> wrote:
> Christophe Gouiran <christophe@e-motive.com> writes:
>
> > Thank you but it doesn't help me much, I already read this.
> > In fact I'd like to know how to add C++ compilation and linking
support
> > for Gnat, not how to play with severals interfacing pragmas.
> > I bet this support is already there on Unixes where gcc is a part of
> > the system and it might be very easy to achieve the C++ compilation
and
> > linking.
> > But on Windows it's another story.
> > I think that Gnat community lacks a good howto for this topic.
>
> Have you taken a look at the file i-cpp.ad[bs] provided with GNAT?
> The package Interfaces.CPP provides the "hooks" that are internally
called
> when the C++ interface pragmas are used in a program:
>
>    --  This package corresponds to Ada.Tags but applied to tagged
types
>    --  which are 'imported' from C++ and correspond to exactly to a
C++
>    --  Class.  GNAT doesn't know about the structure od the C++
dispatch
>    --  table (Vtable) but always access it through the procedural
interface
>    --  defined below, thus the implementation of this package (the
body) can
>    --  be customized to another C++ compiler without any change in the
>    --  compiler code itself as long as this procedural interface is
>    --  respected. Note that Ada.Tags defines a very similar procedural
>    --  interface to the regular Ada Dispatch Table.
>
> Hope this helps.
> Regards,
>
> --
> 	Alain Le Guennec, not speaking for IRISA.
>

Many thanks, I studied those files but my problem is'nt still here.
The only think I want to do in a first step is to add C++ compilation
ability to Gnat under Windows.
I played a little with tools on mingw32 homepage but I always have
undefined references at linking time.
So, has someone succeeded in adding C++ tools and libraries to Gnat ?

Thank in advance.


Sent via Deja.com http://www.deja.com/
Before you buy.




       reply	other threads:[~2000-09-26  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8qd6u5$rss$1@nnrp1.deja.com>
     [not found] ` <8qd8fp$trq$1@nnrp1.deja.com>
     [not found]   ` <8qf4s1$60v$1@nnrp1.deja.com>
     [not found]     ` <wi7r96cxnnl.fsf@sleigh.irisa.fr>
2000-09-26  0:00       ` Christophe Gouiran [this message]
2000-09-26  0:00         ` Ada 95 and C++(again) Alain Le Guennec
2000-09-28  0:00 ` Christophe Gouiran
replies disabled

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