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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,93d284228baafc39 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: [GNAT] Importing a C/C++ library from within Ada? Date: Mon, 25 Apr 2005 09:50:13 +0200 Message-ID: <426CA135.4030400@mailinator.com> References: <1114026742.256627.5450@g14g2000cwa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net AtPRJ1k8MQGRAzHkTwZPwAW7zhmvF0BbNP3L1p1H+BCV3NXhE= User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:10675 Date: 2005-04-25T09:50:13+02:00 List-Id: Rod Kay wrote: > 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. I simply like to be >>able to access the functions/methods from Ada. >> > > I'm in the middle of building an Ada module for SWIG, which will generate > Ada bindings to C/C++ librarys. Excellent! > The module is still in the early stages, but can produce bindings > (currently rather ugly ones) for very simple C and C++ libraries. > > After I work through a majority of the SWIG test suite, and clean up the > code, the module should go into the SWIG cvs, and be available for general > use. Please give a heads-up when that happens. I'm very interested on it. > The initial release will provide support for all of C and simple > inheritance in C++. Exceptions and multiple inheritance, will be catered for > in later versions. Will this module generate bindings for any compiler or gnat specific?