comp.lang.ada
 help / color / mirror / Atom feed
From: "Luke A. Guest" <laguest@archeia.com>
Subject: Re: -fdump-ada-spec: "FILE" not declared
Date: Wed, 15 Apr 2020 16:18:27 +0100
Date: 2020-04-15T16:18:27+01:00	[thread overview]
Message-ID: <r778k8$n7$1@gioia.aioe.org> (raw)
In-Reply-To: hf3qglFt27eU1@mid.individual.net

On 07/04/2020 18:10, 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"

It's best to use the slim variant of that option, then go in and hand
massage the generated code to be "nice" and not the mess you get.

Luke.

      parent reply	other threads:[~2020-04-15 15:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-07 17:10 -fdump-ada-spec: "FILE" not declared hreba
2020-04-07 17:19 ` hreba
2020-04-11 17:01   ` hreba
2020-04-15 15:08     ` hreba
2020-04-07 19:29 ` Per Sandberg
2020-04-08 16:13   ` hreba
2020-04-15 20:02     ` Per Sandberg
2020-04-15 15:18 ` Luke A. Guest [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox