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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c76d41708bf94f23 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!198.186.194.250.MISMATCH!news-xxxfer.readnews.com!news-out.readnews.com!postnews7.readnews.com!postbox2.readnews.com!not-for-mail Date: Thu, 31 Mar 2011 20:01:45 +0200 From: Per Sandberg Reply-To: per.sandberg@bredband.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: c2ada bug report filed References: <3a657bf9-89ed-45c8-bd4d-f226cb3bc5fa@w7g2000pre.googlegroups.com> In-Reply-To: <3a657bf9-89ed-45c8-bd4d-f226cb3bc5fa@w7g2000pre.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4d94c18b$0$4966$a8266bb1@postbox2.readnews.com> NNTP-Posting-Host: 178.22.82.12 X-Trace: 1301594507 postbox2.readnews.com 4966 178.22.82.12:60138 Xref: g2news2.google.com comp.lang.ada:19598 Date: 2011-03-31T20:01:45+02:00 List-Id: Just a sugestion using a new GNAT and the coresponding C/C++ compiler $g++ -c -fdump-ada-spec xx.h and then you will end up with xx_h.ads I have used this technology to generate bindings for large libraries approx 300 C-header-files containing 70000 lines. And the time to produce a full set of bindings with appropriate names and fixes was less then 8 hours. So i expect c2ada to be obsolete at least when GNAT GPL 2011 is released. /Per On 03/30/2011 10:15 AM, Jerry wrote: > I made a bug report for c2ada at > http://sourceforge.net/tracker/?func=detail&aid=3259603&group_id=203517&atid=985906 > > This isn't super important but I was going to try to use it to > convert a 900-line C example file for the PLplot project. > > I was trying to build on OS X 10.6.6 and ran into C errors relating to > undeclared variables. > > Jerry