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 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: hreba Newsgroups: comp.lang.ada Subject: Re: -fdump-ada-spec: "FILE" not declared Date: Wed, 15 Apr 2020 17:08:43 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net bqvhmJY1oAfx+wIulPxLPQjMDTyooFzd1pJtFSDvV5x7eY3DxG Cancel-Lock: sha1:aJivSUihDusvz4CRADD/iimnKGI= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 In-Reply-To: Content-Language: de-DE Xref: reader01.eternal-september.org comp.lang.ada:58364 Date: 2020-04-15T17:08:43+02:00 List-Id: On 4/11/20 7:01 PM, hreba wrote: > Just to let you know that the problem has been solved after a hint on > stackoverflow: using -fdump-ada-spec-slim instead of -fdup-ada-spec one > gets only the Ada bindings of that .h file one asked for, and not those > of all included header files (recursively). Then one manually adds the > header files which one really needs. No need for a declaration of FILE > anymore. The problem appeared again with other C files, but this time I found the solution on the web. From Interfaces.C_Streams: subtype FILEs is System.Address; -- Corresponds to the C type FILE* -- Frank Hrebabetzky, Kronach +49 / 9261 / 950 0565