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: Sun, 24 Apr 2005 02:04:08 +1000 Organization: Gazelle Message-ID: References: <1114026742.256627.5450@g14g2000cwa.googlegroups.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 1114272625 74791 212.85.156.195 (23 Apr 2005 16:10:25 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Sat, 23 Apr 2005 16:10:25 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: User-Agent: KMail/1.6.1 In-Reply-To: <1114026742.256627.5450@g14g2000cwa.googlegroups.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:10653 Date: 2005-04-24T02:04:08+10:00 Today 01:11:23 am On Thu, 21 Apr 2005 05:52 am, conradwt@runbox.com wrote: > Hi, I was wondering, is there an efficient way to import a C/C++ > library withing Ada on Linux platform using GNAT. =A0I simply like to be > able to access the functions/methods from Ada. > =A0 =A0 I'm in the middle of building an Ada module for SWIG, which will ge= nerate=20 Ada bindings to C/C++ librarys. =A0 =A0 The module is still in the early stages, but can produce bindings=20 (currently rather ugly ones) for very simple C and C++ libraries.=20 =A0 =A0 After I work through a majority of the SWIG test suite, and clean u= p the=20 code, the module should go into the SWIG cvs, and be available for general= =20 use. =A0 =A0 The initial release will provide support for all of C and simple=20 inheritance in C++. Exceptions and multiple inheritance, will be catered fo= r=20 in later versions. regards, Rod.