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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!peer03.am4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx29.am4.POSTED!not-for-mail Subject: Re: -fdump-ada-spec: "FILE" not declared Newsgroups: comp.lang.ada References: From: Per Sandberg User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Message-ID: <1w4jG.136762$Oi.43850@fx29.am4> X-Complaints-To: abuse@usenet.se NNTP-Posting-Date: Tue, 07 Apr 2020 19:29:01 UTC Organization: usenet.se Date: Tue, 7 Apr 2020 21:29:00 +0200 X-Received-Bytes: 1475 X-Received-Body-CRC: 2024372674 Xref: reader01.eternal-september.org comp.lang.ada:58323 Date: 2020-04-07T21:29:00+02:00 List-Id: Hi I recalled that i played with it some years ago so i just push:ed my play to github. Have a look on: https://github.com/Ada-bindings-project/ada-gsl /P On 4/7/20 7:10 PM, hreba wrote: > Hi, > I am trying to generate Ada bindings for the GSL (Gnu Scientific > Library) odeiv2 package (ordinary differential equations). So I do the > following 2 steps: > 1. Go to an empty directory "src" and execute >    g++ -c -fdump-ada-spec -C /usr/include/gsl/gsl_odeiv2.h > 2. Go to an empty directory "obj" and execute >    gcc -c -gnat05 ../src/*.ads > Unfortunately, gsl_odeiv2.h includes stdio.h, and this leads to a series > of errors like > > stdio_h.ads:117:69: "FILE" not declared in >     "x86_64_linux_gnu_bits_types_FILE_h"