From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dfa4ab8529e3b55f X-Google-Attributes: gid103376,public From: Christophe Gouiran Subject: Re: Ada 95 and C++(again) Date: 2000/09/26 Message-ID: <8qpim4$of1$1@nnrp1.deja.com>#1/1 X-Deja-AN: 674188174 References: <8qd6u5$rss$1@nnrp1.deja.com> <8qd8fp$trq$1@nnrp1.deja.com> <8qf4s1$60v$1@nnrp1.deja.com> X-Http-Proxy: 1.1 x73.deja.com:80 (Squid/1.1.22) for client 193.104.141.2 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Sep 26 07:19:43 2000 GMT X-MyDeja-Info: XMYDJUIDchristophegouiran Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98) Date: 2000-09-26T00:00:00+00:00 List-Id: In article , Alain Le Guennec wrote: > Christophe Gouiran 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.