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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,93d284228baafc39 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!proxad.net!usenet-fr.net!news.enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Rod Kay Newsgroups: comp.lang.ada Subject: Re: [GNAT] Importing a C/C++ library from within Ada? Date: Tue, 26 Apr 2005 21:48:28 +1000 Organization: Gazelle Message-ID: References: <1114026742.256627.5450@g14g2000cwa.googlegroups.com> <426E0F71.5060701@mailinator.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: melchior.cuivre.fr.eu.org 1114516373 27597 212.85.156.195 (26 Apr 2005 11:52:53 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Tue, 26 Apr 2005 11:52:53 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: User-Agent: KMail/1.6.1 In-Reply-To: <426E0F71.5060701@mailinator.com> Content-Disposition: inline X-mullum-com-au-MailScanner-Information: Please contact the ISP for more information X-mullum-com-au-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:10715 Date: 2005-04-26T21:48:28+10:00 On Tue, 26 Apr 2005 07:52 pm, Alex R. Mosteo wrote: > Rod Kay wrote: > > On Mon, 25 Apr 2005 05:50 pm, Alex R. Mosteo wrote: > >>> The initial release will provide support for all of C and simple > >>>inheritance in C++. Exceptions and multiple inheritance, will be cater= ed > >>>for in later versions. > >> > >>Will this module generate bindings for any compiler or gnat specific? > > > > I'm using Gnat to test the module, but the bindings should work with > > any Ada compiler. At least that is the goal. > > I thought that Ada95 doesn't provide standard means to interface to C++. > Has this changed for Ada0Y? Am I wrong in my belief? > I'm not sure that the Ada95 standard directly supports interfacing to C= ++,=20 but, at the moment, the SWIG Ada module simply 'wraps' C++ classes. Later versions will hopefully improve the generated bindings to conform= =20 more to the Ada style. The SWIG ada module will only support simple C++ inheritance in it firs= t=20 release. I'm hoping Ada0Y (Y =3D> 5 ?) will aid full support of C++ multipl= e=20 inheritance, possibly via Ada0Y's proposed multiple interface inheritance=20 (although I've not looked into this too closely, as yet). Sorry if this is a little vague, but it's early days yet. GCC-4.0.0 has= =20 just come out (a godsend), with considerable support for the proposed Ada0Y= =20 enhancements. I'll use GCC-4.0.0 and (proposed) Ada0Y (5?) as the initial=20 target for the bindings, although support for any Ada compiler/platform is= =20 planned. Here is a rough schedule, in response to an offlist query ... =20 ------------------------------------------------------ > I just would like to ask you when do you plan to finish that job? > Approximately? > =A0 =A0 I hope to add a simple version of the module to the SWIG cvs someti= me next=20 week. This should produce bindings for most C and 'simple' C++ librarys. =A0 =A0 I plan to work on the module steadily over the next month, to tidy = up the=20 code and improve the bindings. There is also a deal of work to be done for= =20 C++ bindings. =A0 =A0 I suppose a barely usable version might be ready in a weeks time, a= usable=20 version within 2-4 weeks, and a decent (full C/C++) version in 3 months. -------------------------------------------------------- regards, Rod.