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.43.151.145 with SMTP id ks17mr13647377icc.24.1413652083383; Sat, 18 Oct 2014 10:08:03 -0700 (PDT) X-Received: by 10.50.128.233 with SMTP id nr9mr70595igb.12.1413652083257; Sat, 18 Oct 2014 10:08:03 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.glorb.com!h18no7313187igc.0!news-out.google.com!bc9ni31795igb.0!nntp.google.com!h18no7313182igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 18 Oct 2014 10:08:02 -0700 (PDT) In-Reply-To: <5442084b$0$48343$862e30e2@ngroups.net> 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> <5442084b$0$48343$862e30e2@ngroups.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <555a4baf-6015-4d33-9a5c-6bc4698ada9e@googlegroups.com> Subject: Re: Interface with C codes From: Anh Vo Injection-Date: Sat, 18 Oct 2014 17:08:03 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:22571 Date: 2014-10-18T10:08:02-07:00 List-Id: On Friday, October 17, 2014 11:27:24 PM UTC-7, Per Sandberg wrote: > Ask the compiler > g++ -fdump-ada-spec ${header} I did just exactly that. But, I had a problem because at least one of the included header in the included chain was not available. I will create a stand alone header containing truct and function prototype only. Then, use g++ -fdump-ada-spec to generate the binding. Thank you all for your suggestions. Anh Vo