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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.146.99 with SMTP id tb3mr6659539pab.11.1413740014674; Sun, 19 Oct 2014 10:33:34 -0700 (PDT) X-Received: by 10.50.98.39 with SMTP id ef7mr123734igb.0.1413740014531; Sun, 19 Oct 2014 10:33:34 -0700 (PDT) Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!h18no7647268igc.0!news-out.google.com!rp1ni32382igb.0!nntp.google.com!uq10no13761647igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 19 Oct 2014 10:33:33 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.6.21.101; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 24.6.21.101 References: <7dec5a01-4376-4f86-b4f3-b28948474828@googlegroups.com> <58556409-4da1-41a2-944b-4cf7aaaf0504@googlegroups.com> <85iojhdy87.fsf@stephe-leake.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4a2314bd-79e4-4a99-a6e6-1fd723aec672@googlegroups.com> Subject: Re: Interface with C codes From: Anh Vo Injection-Date: Sun, 19 Oct 2014 17:33:34 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.giganews.com comp.lang.ada:189896 Date: 2014-10-19T10:33:33-07:00 List-Id: On Sunday, October 19, 2014 6:58:18 AM UTC-7, Simon Wright wrote: > Brian Drummond writes: > > Use gcc -fdump-ada-spec instead of g++ -fdump-ada-spec > > g++ does a better job, they say, but you need to use extern "C": > extern "C" { > // C declarations go here > } Both ways worked fine. Thank you all very much for the info. A. Vo