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!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 23 Apr 2005 15:35:45 -0500 Date: Sat, 23 Apr 2005 16:35:57 -0400 From: Jeff C User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: [GNAT] Importing a C/C++ library from within Ada? References: <1114026742.256627.5450@g14g2000cwa.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-rhwOrkxEgwHHgPqiC1WPmgRcDJQZDNywIGC1nnm7RIW8sb6TQHvZFomv1/UgTtsbep0AIxBQmS3jafo!ler6r6Qs1TatM43IXOgTheqcQO6F/wym/J4t0UUvvVBm9xRgj7SU9url/oTcpA== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:10658 Date: 2005-04-23T16:35:57-04: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. > That is encouraging.. While I have not used SWIG (http://www.swig.org/exec.html) at all it looks like a nice idea. I've been spoiled a bit by gnatcom's ability to auto generate COM bindings so I am always a little put off when I have to hand bind to something under Linux.